dbwrapper

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HevcDB

type HevcDB struct {
	// contains filtered or unexported fields
}

func NewDB

func NewDB(vendor string, connectString string, maxConn int) *HevcDB

func (*HevcDB) ExecSQLWithTx

func (d *HevcDB) ExecSQLWithTx(callback func(tx *sql.Tx) (interface{}, error)) (interface{}, error)

func (*HevcDB) ExecuteSQLs

func (d *HevcDB) ExecuteSQLs(sqlStatements []*HevcSql) ([]interface{}, error)

func (*HevcDB) GetDBInfo

func (d *HevcDB) GetDBInfo() string

type HevcSql

type HevcSql struct {
	Sql  string
	Args []interface{}
}

Jump to

Keyboard shortcuts

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