Documentation
¶
Index ¶
- func CreateDb(dbname string) error
- func DbExists(dbname string) bool
- func DeleteDb(dbname string) error
- func DisconnectAllUsers(dbname string) error
- func DumpDb(outputFilePath string, connConfig types.ConnConfig, onlySchema bool) error
- func GetDbSchema(schema, tablename string) (*types.DbSchema, error)
- func GetExistingDbs() ([]string, error)
- func GetTableSchema(schema string, tablename string) (*types.TableSchema, error)
- func ListTablesInDb() ([]types.Table, error)
- func NewDbFromOriginal_DEPRECATED(originalDbName string, newDbName string) error
- func RestoreDb(connConfig types.ConnConfig, dumpFilePath string, override bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisconnectAllUsers ¶
func DumpDb ¶
func DumpDb(outputFilePath string, connConfig types.ConnConfig, onlySchema bool) error
func GetDbSchema ¶
take schema & tablename as "" if need to fetch the whole db schema else specify schema & tablename to get schema for a specific table
func GetExistingDbs ¶
func GetTableSchema ¶
func GetTableSchema(schema string, tablename string) (*types.TableSchema, error)
func ListTablesInDb ¶
func NewDbFromOriginal_DEPRECATED ¶ added in v0.5.1
DO NOT USE, disconnects all users while creating new db
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.