mysql

package
v0.0.0-...-59d6468 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBM *gorp.DbMap
View Source
var DBMList []*gorp.DbMap

Functions

func BuildDBMs

func BuildDBMs(config *config.MySqlConfig) (dbms []*gorp.DbMap, err error)

func BuildSqlArgs

func BuildSqlArgs(args ...interface{}) ([]interface{}, error)

func DBMTransact

func DBMTransact(ctx string, txFunc func(tx *gorp.Transaction) error) (err error)

func InitDBM

func InitDBM() (err error)

func SqlPlaceholders

func SqlPlaceholders(count int) string

SqlPlaceholders 创建 sql in 查询条件

Types

This section is empty.

Directories

Path Synopsis
Package mysql provides a MySQL driver for Go's database/sql package.
Package mysql provides a MySQL driver for Go's database/sql package.
utils

Jump to

Keyboard shortcuts

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