sqlexec

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLExecutor

type SQLExecutor struct {
	DebugFunc api.DebugFunc
	// contains filtered or unexported fields
}

func NewSQLExecutor

func NewSQLExecutor(db *sqlx.DB) *SQLExecutor

func (*SQLExecutor) BeginTx

func (r *SQLExecutor) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

func (*SQLExecutor) Exec

func (r *SQLExecutor) Exec(ctx context.Context, query string, args ...any) (sql.Result, error)

func (*SQLExecutor) SelectMany

func (r *SQLExecutor) SelectMany(ctx context.Context, dest any, query string, args ...any) error

func (*SQLExecutor) SelectOne

func (r *SQLExecutor) SelectOne(ctx context.Context, dest any, query string, args ...any) error

Jump to

Keyboard shortcuts

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