Versions in this module Expand all Collapse all v0 v0.2.0 Jan 26, 2020 v0.1.0 Nov 4, 2018 Changes in this version + func InitDatabase(driverName, connectionString string) (*sql.DB, error) + func Primarykeys(db PrimarykeyQuery, name string) ([]string, error) + func Table(db TableNamesQuery, name string) ([]*sql.ColumnType, error) + func TableNames(db TableNamesQuery) ([]string, error) + func Tables(db TableNamesQuery) (map[string][]*sql.ColumnType, error) + func View(db ViewNamesQuery, name string) ([]*sql.ColumnType, error) + func ViewNames(db ViewNamesQuery) ([]string, error) + func Views(db ViewNamesQuery) (map[string][]*sql.ColumnType, error) + type DBDriver interface + DB func() *sql.DB + GoImport func() string + InitDB func(connectionString string) error + ObjectQuery func() string + PrimarykeyQuery func() string + TableNamesQuery func() string + ViewNamesQuery func() string + func GetDatabaseEngine(DBEngine string) DBDriver + type DBQuery interface + DB func() *sql.DB + ObjectQuery func() string + type Mssql struct + func (p *Mssql) DB() *sql.DB + func (p *Mssql) GoImport() string + func (p *Mssql) InitDB(connectionString string) error + func (p *Mssql) ObjectQuery() string + func (p *Mssql) PrimarykeyQuery() string + func (p *Mssql) TableNamesQuery() string + func (p *Mssql) ViewNamesQuery() string + type Mysql struct + func (p *Mysql) DB() *sql.DB + func (p *Mysql) GoImport() string + func (p *Mysql) InitDB(connectionString string) error + func (p *Mysql) ObjectQuery() string + func (p *Mysql) PrimarykeyQuery() string + func (p *Mysql) TableNamesQuery() string + func (p *Mysql) ViewNamesQuery() string + type Oracle struct + func (p *Oracle) DB() *sql.DB + func (p *Oracle) GoImport() string + func (p *Oracle) InitDB(connectionString string) error + func (p *Oracle) ObjectQuery() string + func (p *Oracle) PrimarykeyQuery() string + func (p *Oracle) TableNamesQuery() string + func (p *Oracle) ViewNamesQuery() string + type Postgres struct + func (p *Postgres) DB() *sql.DB + func (p *Postgres) GoImport() string + func (p *Postgres) InitDB(connectionString string) error + func (p *Postgres) ObjectQuery() string + func (p *Postgres) PrimarykeyQuery() string + func (p *Postgres) TableNamesQuery() string + func (p *Postgres) ViewNamesQuery() string + type PrimarykeyQuery interface + DB func() *sql.DB + PrimarykeyQuery func() string + type Sqlite struct + func (p *Sqlite) DB() *sql.DB + func (p *Sqlite) GoImport() string + func (p *Sqlite) InitDB(connectionString string) error + func (p *Sqlite) ObjectQuery() string + func (p *Sqlite) PrimarykeyQuery() string + func (p *Sqlite) TableNamesQuery() string + func (p *Sqlite) ViewNamesQuery() string + type TableNamesQuery interface + DB func() *sql.DB + ObjectQuery func() string + TableNamesQuery func() string + type ViewNamesQuery interface + DB func() *sql.DB + ObjectQuery func() string + ViewNamesQuery func() string