sqlboiler/dbdrivers/db_driver.go
Patrick O'brien b43f9c63d8 Struct generation complete, pipes to stdout
* Database driver config & flag complete
* Table flag complete, will use all tables if non specified
2016-02-23 18:27:32 +10:00

16 lines
332 B
Go

package dbdrivers
type DBDriver interface {
GetAllTableNames() ([]string, error)
GetTableInfo(tableName string) ([]DBTable, error)
ParseTableInfo(colName, colType string) DBTable
// Open the database connection
Open() error
// Close the database connection
Close()
}
type DBTable struct {
ColName string
ColType string
}