db_int

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: GPL-3.0 Imports: 10 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 DisconnectAllUsers

func DisconnectAllUsers(dbname string) error

func DumpDb

func DumpDb(outputFilePath string, v *viper.Viper) error

func ExecuteStatements

func ExecuteStatements(sqlStr string) error

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 NewDbFromOriginal

func NewDbFromOriginal(originalDbName string, newDbName string) error

func RestoreDb

func RestoreDb(dbname string, v *viper.Viper, 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