Documentation ¶
Index ¶
Constants ¶
View Source
const ( Utf8mb4 Charset = "utf8mb4" TCP ConnectionType = "tcp" Unix ConnectionType = "unix" DefaultPort = 3306 DefaultMaxConnections = 32 DefaultConnMaxLifetime = 1 * time.Hour DefaultTimeout = 30 * time.Second DefaultReadTimeout = 30 * time.Second DefaultWriteTimeout = 30 * time.Second DefaultQueryTimeout = 60 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
func (Config) ConnMaxLifetime ¶
func (Config) MaxConnections ¶
func (Config) QueryTimeout ¶
type ConnectionType ¶
type ConnectionType string
type Option ¶
func NetAddress ¶
func WithQueryTimeout ¶
func WithoutSchema ¶
func WithoutSchema() Option
Click to show internal directories.
Click to hide internal directories.