Categorygithub.com/suisrc/sqlxz.zgo
modulepackage
0.0.0-20210416074018-b1c702385a66
Repository: https://github.com/suisrc/sqlxz.zgo.git
Documentation: pkg.go.dev

# README

说明

GIN + ENT/SQLX + CASBIN + WIRE + I18N

为了保持系统精简性(目前数据库处理只使用SQLX), 暂时移除了ENT相关的内容, 结构暂时保留

# Functions

CreateUpdateSQLByNamed create update sql by named.
CreateUpdateSQLByNamedAndSkipNil create update sql by named 忽略空字段, 空字段不进行更新, 如果需要前置更新空字段, 直接使用 CreateUpdateSQLByNamed.
CreateUpdateSQLByNamedAndSkipNilAndSet create update sql by named 会处理 "set" 标签的内容 , 比如 `set:"=cloumn + 1"`.
DeleteOne delete 1.
No description provided by the author
IsNotFound of sqlx.
NewNowTime 获取当前时间.
PickProxy 解除sql.NullXXX上的内容.
QueryGet 查询单个.
QueryGet 查询单个.
QuerySelect 查询集合.
QuerySelect 查询集合.
QuerySelect 查询集合.
SelectColumns select column.
SelectColumns select column.
Struct2Map struct to map.
UpdateAndSaveByIDWithNamed update.
UpdateAndSaveX2 ...
UpdateAndSaveX ...
WithTx 执行带有事务的方法, 在一个事务中完成所有的内容.
WithTxV 执行带有事务的方法, 在一个事务中完成所有的内容.
WithTxVx 执行带有事务的方法, 在一个事务中完成所有的内容.

# Variables

No description provided by the author

# Structs

Index id.
TableIdxColumn id 1.Column="" 或者 Column = "id", 如果ID > 0 update, 否则 create 2.Update直接决定 update 或者 create 3.DB = nil 或者 Table = nil, 为 create 4.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author