Documentation
¶
Index ¶
- type Config
- func (c *Config) Connect(useAdmin bool) (*sql.DB, error)
- func (c *Config) DatabaseName() string
- func (c *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) 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 int32
Database string
MaxOpenConns uint32
MaxConnLifetime time.Duration
MaxConnIdleTime time.Duration
User User
Admin User
//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.