package
1.7.23
Repository: https://github.com/zr-hebo/utils.git
Documentation: pkg.go.dev

# README

db_util

golang implement database operation util

# Functions

CloseConnection 关闭数据库连接.
GetMySQLConnInfo 获取MySQL连接的字符串显示.
GetMySQLConnInfoIgnoreErr 获取MySQL连接的字符串显示,忽略错误信息.
NewMySQL 创建MySQL数据库.
NewMySQLWithTimeout 创建MySQL数据库.
NewShowNullScanner 显示NULL值的接收器,要求Scan的时候传入的参数是string类型.
QueryRow 执行MySQL Query语句,返回多条数据.
QueryRowInTx 执行MySQL Query语句,返回多条数据.
QueryRows 执行MySQL Query语句,返回多条数据.
No description provided by the author
QueryRowsInTx 执行MySQL Query语句,返回多条数据.
QueryRowsWithMap 执行 MySQL Query语句,返回多条数据.
QueryRowsWithMapInTx 执行 MySQL Query语句,返回多条数据.
No description provided by the author
QueryRowsWithOrderedMap 执行 MySQL Query语句,返回多条数据.
QueryRowsWithOrderedMapInTx 执行 MySQL Query语句,返回多条数据.
No description provided by the author
No description provided by the author
QueryRowWithMap 执行 MySQL Query语句,返回1条或0条数据.
QueryRowWithMapInTx 执行 MySQL Query语句,返回1条或0条数据.
No description provided by the author
No description provided by the author
QueryRowWithOrderedMap 执行 MySQL Query语句,返回1条或0条数据.
QueryRowWithOrderedMapInTx 执行 MySQL Query语句,返回1条或0条数据.
No description provided by the author
No description provided by the author

# Structs

CheckPair CheckPair.
Field 字段.
Host 主机.
MySQL Mysql主机实例.
Row 查询单行数据.
RowInMap 查询单行数据.
RowInOrderedMap 查询单行数据.
Rows 查询多行数据.
RowsInMap 查询多行数据.
RowsInOrderedMap 查询多行数据.
UnanimityHost id标示的主机.
UnanimityHostWithDomains 带域名的id标示的主机.

# Interfaces

Scanner SQL rows读取器.