Documentation ¶
Index ¶
Constants ¶
View Source
const ( MySQLDialect = "mysql" SQLiteDialect = "sqlite" PgSQLDialect = "pgsql" )
Variables ¶
View Source
var (
ErrPoolNotFound = errors.New("pool not found")
)
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.