pdb

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(sql string) (sqlResult sql.Result, err error)

func ExecFile

func ExecFile(path string) (err error)

func GetDB

func GetDB() (*sql.DB, error)

func GetGormDB

func GetGormDB() *gorm.DB

func GetTables

func GetTables() (ret []string, err error)

func InitPG

func InitPG(host, user, password, dbName string, port int32) (err error)

func InitPGByConfig

func InitPGByConfig() error

func MustInitPGByConfig

func MustInitPGByConfig()

Types

This section is empty.

Directories

Path Synopsis
Package pgerrcode contains constants for PostgreSQL error codes.
Package pgerrcode contains constants for PostgreSQL error codes.

Jump to

Keyboard shortcuts

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