Documentation
¶
Overview ¶
This package has database adapter layer. Never deal with DDL construction.
Index ¶
Constants ¶
View Source
const ( DatabaseTypeMysql = DatabaseType(iota) DatabaseTypePostgres )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database interface {
TableNames() ([]string, error)
DumpTableDDL(table string) (string, error)
DB() *sql.DB
Close() error
}
Abstraction layer for multiple kinds of databases
type DatabaseType ¶
type DatabaseType int
Click to show internal directories.
Click to hide internal directories.