Documentation ¶
Overview ¶
Package sql provides SQL implementations of the storage interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
type MySQL struct { NetworkDB SSL SSL `json:"ssl" yaml:"ssl"` // contains filtered or unexported fields }
MySQL options for creating a MySQL db.
type NetworkDB ¶
type NetworkDB struct { Database string User string Password string Host string Port uint16 ConnectionTimeout int // Seconds // database/sql tunables, see // https://golang.org/pkg/database/sql/#DB.SetConnMaxLifetime and below // Note: defaults will be set if these are 0 MaxOpenConns int // default: 5 MaxIdleConns int // default: 5 ConnMaxLifetime int // Seconds, default: not set }
NetworkDB contains options common to SQL databases accessed over network.
Click to show internal directories.
Click to hide internal directories.