Versions in this module Expand all Collapse all v0 v0.25.6 Sep 15, 2021 Changes in this version + const DefaultConnectionClass + const DefaultMaxLifeTime + const DefaultPoolIncrement + const DefaultPoolMaxSessions + const DefaultPoolMinSessions + const DefaultSessionIncrement + const DefaultSessionTimeout + const DefaultStandaloneConnection + const DefaultWaitTimeout + const NoConnectionPoolingConnectionClass + func AppendLogfmt(w io.Writer, key, value interface{}) error + func Fuzz(data []byte) int + func ParseTZ(s string) (int, error) + type CommonParams struct + AlterSession [][2]string + ConfigDir string + ConnectString string + EnableEvents bool + LibDir string + NoTZCheck bool + OnInit func(context.Context, driver.ConnPrepareContext) error + OnInitStmts []string + Password Password + StmtCacheSize int + Timezone *time.Location + Username string + func (P CommonParams) String() string + type ConnParams struct + ConnClass string + IsPrelim bool + IsSysASM bool + IsSysDBA bool + IsSysOper bool + NewPassword Password + ShardingKey []interface{} + SuperShardingKey []interface{} + func (P ConnParams) String() string + type ConnectionParams struct + StandaloneConnection bool + func Parse(dataSourceName string) (ConnectionParams, error) + func (P *ConnectionParams) SetSessionParamOnInit(k, v string) + func (P ConnectionParams) IsStandalone() bool + func (P ConnectionParams) String() string + func (P ConnectionParams) StringNoClass() string + func (P ConnectionParams) StringWithPassword() string + type Password struct + func NewPassword(secret string) Password + func (P *Password) CopyFrom(Q Password) + func (P *Password) Reset() + func (P *Password) Set(secret string) + func (P Password) IsZero() bool + func (P Password) Len() int + func (P Password) Secret() string + func (P Password) String() string + type PoolParams struct + ExternalAuth bool + Heterogeneous bool + MaxLifeTime time.Duration + MaxSessions int + MaxSessionsPerShard int + MinSessions int + PingInterval time.Duration + SessionIncrement int + SessionTimeout time.Duration + WaitTimeout time.Duration + func (P PoolParams) String() string