Documentation
¶
Index ¶
- type AdminUser
- type Config
- func (c *Config) Connect(useAdmin bool, pusherRatio, spoolerRatio float64, purpose dialect.DBPurpose) (*sql.DB, error)
- func (c *Config) DatabaseName() string
- func (_ *Config) Decode(configs []interface{}) (dialect.Connector, error)
- func (c *Config) MatchName(name string) bool
- func (c *Config) Password() string
- func (c Config) String(useAdmin bool, appName string) string
- func (c *Config) Timetravel(d time.Duration) string
- func (c *Config) Type() string
- func (c *Config) Username() string
- type SSL
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string Port uint16 Database string MaxOpenConns uint32 MaxIdleConns uint32 MaxConnLifetime time.Duration MaxConnIdleTime time.Duration User User Admin AdminUser // Additional options to be appended as options=<Options> // The value will be taken as is. Multiple options are space separated. Options string }
func (*Config) DatabaseName ¶
Click to show internal directories.
Click to hide internal directories.