db

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnConfig

type ConnConfig struct {
	*sqlx.DB
}

func NewDBConnPool

func NewDBConnPool(driverName, dataSource string) (*ConnConfig, error)

func (*ConnConfig) QueryDataToMap

func (m *ConnConfig) QueryDataToMap(queryStr string, args ...interface{}) ([]map[string]string, int64, error)

func (*ConnConfig) QueryDataToStruct

func (m *ConnConfig) QueryDataToStruct(obj any, queryStr string, args ...interface{}) error

func (*ConnConfig) UIData

func (m *ConnConfig) UIData(sql string, args ...interface{}) (int64, error)

Jump to

Keyboard shortcuts

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