Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMigrations ¶
Types ¶
type Client ¶
func (*Client) ConnectionURL ¶ added in v0.3.2
ConnectionURL fetch the database connection url
func (Client) WithTimeout ¶
type Config ¶
type Config struct { Driver string `yaml:"driver" mapstructure:"driver"` URL string `yaml:"url" mapstructure:"url"` MaxIdleConns int `yaml:"max_idle_conns" mapstructure:"max_idle_conns" default:"10"` MaxOpenConns int `yaml:"max_open_conns" mapstructure:"max_open_conns" default:"10"` ConnMaxLifeTime time.Duration `yaml:"conn_max_life_time" mapstructure:"conn_max_life_time" default:"10ms"` MaxQueryTimeout time.Duration `yaml:"max_query_timeout" mapstructure:"max_query_timeout" default:"100ms"` }
Click to show internal directories.
Click to hide internal directories.