db_util

package
v0.0.0-...-dac97f0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFromTableIfExist

func DeleteFromTableIfExist(db *sql.DB, table string) (err error)

func EnsureDB

func EnsureDB(host string, port int, username string, password string, dbName string) (db *sql.DB, err error)

Make sure the database exists (creates it if it doesn't)

func GetDbEndpoint

func GetDbEndpoint(dbName string) (host string, port int, err error)

func RunLocalDB

func RunLocalDB(dbName string) (db *sql.DB, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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