Documentation ¶
Index ¶
- func GetError(err error, query string, args ...interface{}) error
- func ResolveFirstDataResult(rows *sql.Rows, result any) (err error)
- func ResolveFirstRow(rows *sql.Rows) (dataRows xdb.Row, err error)
- func ResolveMultiRows(rows *sql.Rows) (datasetRows []xdb.Rows, err error)
- func ResolveParams(input any) (params xtypes.XMap, err error)
- func ResolveRows(rows *sql.Rows) (dataRows xdb.Rows, err error)
- func ResolveRowsDataResult(rows *sql.Rows, result any) (err error)
- func ResolveScalar(rows *sql.Rows) (val any, err error)
- func Unwrap(args ...interface{}) []interface{}
- type DbResolveMapValCallback
- type DbResolveResultCallback
- type ISysDB
- type ISysTrans
- type Option
- type WrapArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveFirstDataResult ¶
解析数据结果
func ResolveRowsDataResult ¶
解析数据结果
Types ¶
type ISysDB ¶
type ISysTrans ¶
type ISysTrans interface { Query(string, ...interface{}) (*sql.Rows, error) Execute(string, ...interface{}) (sql.Result, error) Rollback() error Commit() error }
ISysTrans 数据库事务接口
type Option ¶ added in v0.5.23
type Option func(*sysDB)
func WithConnName ¶ added in v0.5.23
func WithMaxIdle ¶ added in v0.5.23
func WithMaxLifeTime ¶ added in v0.5.23
func WithMaxOpen ¶ added in v0.5.23
Source Files ¶
Click to show internal directories.
Click to hide internal directories.