sqlxutils

package
v0.0.0-...-2574a71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(ctx context.Context, db sqlx.ExecerContext, query string, args ...interface{}) (sql.Result, error)

func Get

func Get(ctx context.Context, db sqlx.QueryerContext, dest interface{}, query string, args ...interface{}) error

func NamedExec

func NamedExec(ctx context.Context, db sqlx.ExtContext, query string, arg interface{}) (sql.Result, error)

func NamedGet

func NamedGet(ctx context.Context, db sqlx.ExtContext, dest interface{}, query string, arg interface{}) error

func NamedSelect

func NamedSelect(ctx context.Context, db sqlx.ExtContext, dest interface{}, query string, arg interface{}) error

func RunTx

func RunTx(ctx context.Context, db txRunner, level sql.IsolationLevel, f txFunc) (err error)

func Select

func Select(ctx context.Context, db sqlx.QueryerContext, dest interface{}, query string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL