dbutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDB

func AddDB(dbname string, driver string, url string, maxOpenConns int, maxIdleConns int, connMaxIdleTime time.Duration, connMaxLifetime time.Duration)

func CloseDB

func CloseDB(dbname string) bool

func ExecuteBatchSQL

func ExecuteBatchSQL(dbname string, sqls []string) bool

func ExecuteSQL

func ExecuteSQL(dbname string, sql string, args ...interface{}) bool

func GetDB

func GetDB(dbname string) *sqlx.DB

func InitFromConfig

func InitFromConfig(configs []interface{}, decryptKey string, decryptHandler func(content string, decryptKey string) string) bool

func QueryMap

func QueryMap(dbname string, sql string, args ...interface{}) []map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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