DataAccessLayer

package
v0.0.0-...-1dcc2f8 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEBUG bool

Functions

func Conn

func Conn(driver string, user string, pass string, host string, db string) (dbx *sqlx.DB, sql string)

func Exec

func Exec(dbx *sqlx.DB, sql string, args ...interface{}) bool

func ExecBatch

func ExecBatch(dbx *sqlx.DB, sqls []string) bool

func ExecBatchDetail

func ExecBatchDetail(driver string, user string, pass string, host string, db string, sqls []string) bool

func ExecDetail

func ExecDetail(driver string, user string, pass string, host string, db string, sql string, args ...interface{}) bool

func IntResult

func IntResult(key string, dbx *sqlx.DB, sql string, args ...interface{}) int

func Query

func Query(dbx *sqlx.DB, sql string, rowIndex int, rowSize int, args ...interface{}) ([]map[string]interface{}, int)

func QueryDetail

func QueryDetail(driver string, user string, pass string, host string, db string, sql string, rowIndex int, rowSize int, args ...interface{}) ([]map[string]interface{}, int)

func StringResult

func StringResult(key string, dbx *sqlx.DB, sql string, args ...interface{}) string

func TopRow

func TopRow(dbx *sqlx.DB, sql string, args ...interface{}) map[string]interface{}

func TopRowDetail

func TopRowDetail(driver string, user string, pass string, host string, db string, sql string, rowIndex int, rowSize int, 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