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, v *viper.Viper) error
- func GetDbSchema(schema, tablename string) (*types.DbSchema, error)
- func GetExistingDbs() ([]string, error)
- func GetPgConnUriFromViper(dbname string) string
- func GetTableSchema(schema string, tablename string) (*types.TableSchema, error)
- func ListTablesInDb() ([]types.Table, error)
- func NewDbFromOriginal(originalDbName string, newDbName string) error
- func PgDumpExists() bool
- func RestoreDb(dbname string, v *viper.Viper, dumpFilePath string, override bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisconnectAllUsers ¶
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 GetPgConnUriFromViper ¶
func GetTableSchema ¶
func GetTableSchema(schema string, tablename string) (*types.TableSchema, error)
func ListTablesInDb ¶
func NewDbFromOriginal ¶
func PgDumpExists ¶
func PgDumpExists() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.