Documentation ¶
Index ¶
- type DbContext
- func (d *DbContext) Begin() *DbContext
- func (d *DbContext) Commit() *DbContext
- func (d *DbContext) Err() error
- func (d *DbContext) Exec(query string, args ...interface{}) *DbContext
- func (d *DbContext) Get(dest interface{}, query string, args ...interface{}) *DbContext
- func (d *DbContext) LastInsertId(id *int64) *DbContext
- func (d *DbContext) LogErr(msg string, args ...interface{}) *DbContext
- func (d *DbContext) RowsAffected(n *int64) *DbContext
- func (d *DbContext) Select(dest interface{}, query string, args ...interface{}) *DbContext
- type ErrorConvertFunc
- type ErrorLogFunc
- type SqlxChain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbContext ¶
type DbContext struct {
// contains filtered or unexported fields
}
func (*DbContext) LastInsertId ¶
func (*DbContext) RowsAffected ¶
type ErrorConvertFunc ¶
type ErrorLogFunc ¶
type SqlxChain ¶
SqlxChain is a thin wrapper around a sqlx.DB.
func (*SqlxChain) ErrorConverter ¶
func (sc *SqlxChain) ErrorConverter(f ErrorConvertFunc)
func (*SqlxChain) ErrorLogger ¶
func (sc *SqlxChain) ErrorLogger(f ErrorLogFunc)
Click to show internal directories.
Click to hide internal directories.