Versions in this module Expand all Collapse all v1 v1.0.1 Dec 1, 2022 Changes in this version + const DefaultConnectionClass + const DefaultMaxLifeTime + const DefaultPoolIncrement + const DefaultPoolMaxSessions + const DefaultPoolMinSessions + const DefaultSessionIncrement + const DefaultSessionTimeout + const DefaultStandaloneConnection + const DefaultWaitTimeout + const NoConnectionPoolingConnectionClass + var ErrCannotMarshal = errors.New("cannot be marshaled") + 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 + Charset 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 OnInitNewConnectionType string + var OnInitNewConnectionKey OnInitNewConnectionType = "oinewconn" + type Password struct + func NewPassword(secret string) Password + func (P *Password) CopyFrom(Q Password) + func (P *Password) MarshalBinary() ([]byte, error) + func (P *Password) MarshalJSON() ([]byte, error) + func (P *Password) MarshalText() ([]byte, error) + 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