Documentation ¶
Index ¶
- type Cli
- type LogLevel
- type Option
- func WithAuth(user, password string) Option
- func WithDatabase(database string) Option
- func WithHost(host string) Option
- func WithLogLevel(lv LogLevel) Option
- func WithMaxIdleConns(num int) Option
- func WithMaxOpenConns(num int) Option
- func WithPort(port int) Option
- func WithSSLMode(sslmode bool) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*option)
func WithDatabase ¶
func WithLogLevel ¶
func WithMaxIdleConns ¶
The default max idle connections is currently 2.
func WithMaxOpenConns ¶
func WithSSLMode ¶
Click to show internal directories.
Click to hide internal directories.