db_int

package
v0.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

this is a central place for calling driver-specific internal functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDb

func CreateDb(dbname string) error

func DbExists

func DbExists(dbname string) bool

func DeleteDb

func DeleteDb(dbname string) error

func DumpDb

func DumpDb(outputFilePath string, connConfig types.ConnConfig, onlySchema bool) error

func ExecuteStatements

func ExecuteStatements(stmts []string) error

no transactions, rawdawg them queries right in the DB

func ExecuteStatementsTx added in v0.5.1

func ExecuteStatementsTx(stmts []string) error

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 ExecuteStatements__DEPRECATED

func ExecuteStatements__DEPRECATED(dbname, sqlStr string) error

func GetDbSchema

func GetDbSchema(dbname string) (*types.DbSchema, error)

func GetExistingDbs

func GetExistingDbs() ([]string, error)

func GetRows

func GetRows(queryStr string) (types.QueryResult, error)

i dont like this

func GetTableSchema

func GetTableSchema(dbname, schema, tablename string) (*types.TableSchema, error)

func ListTablesInDb

func ListTablesInDb() ([]types.Table, error)

func RestoreDb

func RestoreDb(connConfig types.ConnConfig, dumpFilePath string, override bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL