Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Type string `yaml:"type"` Host string `yaml:"host"` Database string `yaml:"database"` Username string `yaml:"username"` Password string `yaml:"password"` Tunnel string `yaml:"tunnel"` ConnMaxLifeTime int64 `yaml:"max_life_time"` ConnMaxIdleTime int64 `yaml:"max_idle_time"` MaxIdleConns int `yaml:"max_idle_conn"` MaxOpenConns int `yaml:"max_open_conn"` LazyFetch bool `yaml:"lazy_fetch"` }
type DatasourceWrapper ¶
func NewDatasourceWrapper ¶
func NewDatasourceWrapper(DB *sql.DB, configure Configure) DatasourceWrapper
type DatasourceWrapperImpl ¶
type DatasourceWrapperImpl struct {
// contains filtered or unexported fields
}
func (*DatasourceWrapperImpl) Configure ¶
func (d *DatasourceWrapperImpl) Configure() Configure
func (*DatasourceWrapperImpl) DB ¶
func (d *DatasourceWrapperImpl) DB() *sql.DB
Click to show internal directories.
Click to hide internal directories.