Documentation
¶
Overview ¶
this is a central place for calling driver-specific internal functions
Index ¶
- func CreateDb(dbname string) error
- func DbExists(dbname string) bool
- func DeleteDb(dbname string) error
- func DumpDb(outputFilePath string, connConfig types.ConnConfig, onlySchema bool) error
- func ExecuteStatements(stmts []string) error
- func ExecuteStatementsTx(stmts []string) error
- func ExecuteStatements__DEPRECATED(dbname, sqlStr string) error
- func GetDbSchema(dbname string) (*types.DbSchema, error)
- func GetExistingDbs() ([]string, error)
- func GetRows(queryStr string) (types.QueryResult, error)
- func GetTableSchema(dbname, schema, tablename string) (*types.TableSchema, error)
- func ListTablesInDb() ([]types.Table, error)
- func RestoreDb(connConfig types.ConnConfig, dumpFilePath string, override bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpDb ¶
func DumpDb(outputFilePath string, connConfig types.ConnConfig, onlySchema bool) error
func ExecuteStatements ¶
no transactions, rawdawg them queries right in the DB
func ExecuteStatementsTx ¶ added in v0.5.1
takes in a sql string & differentiates between multiple executable statements by a ";" followed by a newline. EXPECTS AN INPUT GENERATED FROM 'libUtils.GetSqlStmts()' func
func GetExistingDbs ¶
func GetTableSchema ¶
func GetTableSchema(dbname, schema, tablename string) (*types.TableSchema, error)
func ListTablesInDb ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.