Documentation
¶
Index ¶
Constants ¶
View Source
const ( MySQLDialect = "mysql" SQLiteDialect = "sqlite" )
nolint: golint
Variables ¶
View Source
var (
ErrPoolNotFound = errors.New("pool not found")
)
nolint: golint
Functions ¶
This section is empty.
Types ¶
type ConfigInterface ¶
type ConfigInterface interface {
List() []ItemInterface
}
ConfigInterface interface of configs
type Connector ¶
type Connector interface {
Dialect() string
Pool(string) (*sql.DB, error)
Reconnect() error
Close() error
}
Connector interface of connection
type ItemInterface ¶
type ItemInterface interface {
GetName() string
GetDSN() string
Setup(SetupInterface)
}
ItemInterface config item interface
Click to show internal directories.
Click to hide internal directories.