b43f9c63d8
* Database driver config & flag complete * Table flag complete, will use all tables if non specified
16 lines
332 B
Go
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
|
|
}
|