Documentation ¶
Index ¶
- func ParamsFor(vals ...string) string
- func WithBegin(db DB, handler TxHandler) (err error)
- func WithBeginNOP(db DB, handler TxHandler) (err error)
- func WithBeginTx(db DB, handler TxHandler, ctx context.Context, opts *sql.TxOptions) (err error)
- func WithBeginTxx(db DBx, handler TxxHandler, ctx context.Context, opts *sql.TxOptions) (err error)
- func WithBeginx(db DBx, handler TxxHandler) (err error)
- func WithBeginxNOP(db DBx, handler TxxHandler) (err error)
- type DB
- type DBx
- type NullFloat64
- type NullInt
- type NullInt16
- type NullInt32
- type NullInt64
- type NullString
- type NullTime
- type Tx
- type TxHandler
- type Txx
- type TxxHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithBeginNOP ¶ added in v0.6.0
WithBegin without actuallly starting a transaction
func WithBeginTx ¶ added in v0.6.0
Call db.BeginTx with a closure
func WithBeginTxx ¶ added in v0.6.0
Call db.BeginTxx with a closure
func WithBeginx ¶ added in v0.6.0
func WithBeginx(db DBx, handler TxxHandler) (err error)
Call db.Begin with a closure
func WithBeginxNOP ¶ added in v0.6.0
func WithBeginxNOP(db DBx, handler TxxHandler) (err error)
WithBeginx without actuallly starting a transaction
Types ¶
type NullFloat64 ¶ added in v0.9.0
type NullFloat64 struct {
sql.NullFloat64
}
func (NullFloat64) MarshalJSON ¶ added in v0.9.0
func (ni NullFloat64) MarshalJSON() ([]byte, error)
func (*NullFloat64) UnmarshalJSON ¶ added in v0.9.0
func (ni *NullFloat64) UnmarshalJSON(b []byte) error
type NullInt ¶ added in v0.10.14
A JSON safe version of sql.NullInt
func (NullInt) MarshalJSON ¶ added in v0.10.14
func (*NullInt) UnmarshalJSON ¶ added in v0.10.14
type NullInt16 ¶ added in v0.9.0
func (NullInt16) MarshalJSON ¶ added in v0.9.0
func (*NullInt16) UnmarshalJSON ¶ added in v0.9.0
type NullInt32 ¶ added in v0.9.0
func (NullInt32) MarshalJSON ¶ added in v0.9.0
func (*NullInt32) UnmarshalJSON ¶ added in v0.9.0
type NullInt64 ¶ added in v0.8.12
A JSON safe version of sql.NullInt64
func (NullInt64) MarshalJSON ¶ added in v0.8.12
func (*NullInt64) UnmarshalJSON ¶ added in v0.8.12
type NullString ¶ added in v0.10.12
type NullString struct {
sql.NullString
}
func (NullString) MarshalJSON ¶ added in v0.10.12
func (ni NullString) MarshalJSON() ([]byte, error)
func (*NullString) UnmarshalJSON ¶ added in v0.10.12
func (ni *NullString) UnmarshalJSON(b []byte) error
type NullTime ¶ added in v0.9.0
func (NullTime) MarshalJSON ¶ added in v0.9.0
func (*NullTime) UnmarshalJSON ¶ added in v0.9.0
type Txx ¶ added in v0.6.0
type Txx interface { Tx MustExec(query string, arguments ...interface{}) (r sql.Result) MustExecContext(ctx context.Context, query string, arguments ...interface{}) (r sql.Result) NamedExec(query string, arguments interface{}) (r sql.Result, err error) NamedExecContext(ctx context.Context, query string, arguments interface{}) (r sql.Result, err error) NamedStmt(stmt *sqlx.NamedStmt) (ns *sqlx.NamedStmt) NamedStmtContext(ctx context.Context, stmt *sqlx.NamedStmt) (ns *sqlx.NamedStmt) NamedQuery(query string, arguments interface{}) (rows *sqlx.Rows, err error) }
type TxxHandler ¶ added in v0.5.3
Click to show internal directories.
Click to hide internal directories.