Documentation ¶
Index ¶
- func Exec(ext sqlx.Ext, sql string, args ...interface{}) (sql.Result, error)
- func ExecContext(ctx context.Context, ext sqlx.ExtContext, sql string, args ...interface{}) (sql.Result, error)
- func Get(ext sqlx.Ext, ptr interface{}, sql string, args ...interface{}) error
- func GetContext(ctx context.Context, ext sqlx.ExtContext, ptr interface{}, sql string, ...) error
- func NamedExec(ext sqlx.Ext, sql string, args interface{}) (sql.Result, error)
- func NamedExecContext(ctx context.Context, ext sqlx.ExtContext, sql string, args interface{}) (sql.Result, error)
- func NamedGet(ext sqlx.Ext, ptr interface{}, sql string, args interface{}) error
- func NamedGetContext(ctx context.Context, ext sqlx.ExtContext, ptr interface{}, sql string, ...) error
- func NamedSelect(ext sqlx.Ext, ptr interface{}, sql string, args interface{}) error
- func NamedSelectContext(ctx context.Context, ext sqlx.ExtContext, ptr interface{}, sql string, ...) error
- func RebindExec(ext sqlx.Ext, sql string, args ...interface{}) (sql.Result, error)
- func RebindExecContext(ctx context.Context, ext sqlx.ExtContext, sql string, args ...interface{}) (sql.Result, error)
- func RebindGet(ext sqlx.Ext, ptr interface{}, sql string, args ...interface{}) error
- func RebindGetContext(ctx context.Context, ext sqlx.ExtContext, ptr interface{}, sql string, ...) error
- func RebindSelect(ext sqlx.Ext, ptr interface{}, sql string, args ...interface{}) error
- func RebindSelectContext(ctx context.Context, ext sqlx.ExtContext, ptr interface{}, sql string, ...) error
- func Select(ext sqlx.Ext, ptr interface{}, sql string, args ...interface{}) error
- func SelectContext(ctx context.Context, ext sqlx.ExtContext, ptr interface{}, sql string, ...) error
- func WrapQueryer(q Queryer) queryerWrapper
- func WrapUpdater(u Updater) updaterWrapper
- type Queryer
- func GroupQueryers(qs ...Queryer) Queryer
- func NewNopQueryer() Queryer
- func OpGet(sql string, ptr interface{}, args ...interface{}) Queryer
- func OpNamedGet(sql string, ptr, args interface{}) Queryer
- func OpNamedSelect(sql string, ptr, args interface{}) Queryer
- func OpRebindGet(sql string, ptr interface{}, args ...interface{}) Queryer
- func OpRebindSelect(sql string, ptr interface{}, args ...interface{}) Queryer
- func OpSelect(sql string, ptr interface{}, args ...interface{}) Queryer
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecContext ¶
func ExecContext(ctx context.Context, ext sqlx.ExtContext, sql string, args ...interface{}) (sql.Result, error)
==============================================================================
Exec
==============================================================================
func GetContext ¶
func GetContext(ctx context.Context, ext sqlx.ExtContext, ptr interface{}, sql string, args ...interface{}) error
==============================================================================
Get
==============================================================================
func NamedExecContext ¶
func NamedGetContext ¶
func NamedSelect ¶
func NamedSelectContext ¶
func RebindExec ¶
func RebindExecContext ¶
func RebindGetContext ¶
func RebindSelect ¶
func RebindSelectContext ¶
func SelectContext ¶
func SelectContext(ctx context.Context, ext sqlx.ExtContext, ptr interface{}, sql string, args ...interface{}) error
==============================================================================
Select
==============================================================================
func WrapQueryer ¶ added in v0.0.2
func WrapQueryer(q Queryer) queryerWrapper
func WrapUpdater ¶ added in v0.0.2
func WrapUpdater(u Updater) updaterWrapper
Types ¶
type Queryer ¶
type Queryer interface { Exec(ext sqlx.Ext) error ExecContext(ctx context.Context, ext sqlx.ExtContext) error }
==============================================================================
Op
==============================================================================
func GroupQueryers ¶ added in v0.0.3
func NewNopQueryer ¶ added in v0.0.3
func NewNopQueryer() Queryer
func OpNamedGet ¶
func OpNamedSelect ¶
func OpRebindGet ¶
func OpRebindSelect ¶
type Updater ¶
type Updater interface { Exec(ext sqlx.Ext) (sql.Result, error) ExecContext(ctx context.Context, ext sqlx.ExtContext) (sql.Result, error) }
func GroupUpdaters ¶ added in v0.0.3
func NewNopUpdater ¶ added in v0.0.3
func NewNopUpdater() Updater
func OpNamedExec ¶
func OpRebindExec ¶
Click to show internal directories.
Click to hide internal directories.