sqlx

package
v0.0.0-...-c3dc23c Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanMany

func ScanMany(rows *sql.Rows, dist any, max int) error

func ScanOne

func ScanOne(rows *sql.Rows, dist any) error

Types

type DB

type DB struct {
	Raw *sql.DB
}

func (*DB) Execute

func (db *DB) Execute(ctx context.Context, query string, args ...any) (sql.Result, error)

func (*DB) Query

func (db *DB) Query(ctx context.Context, query string, args ...any) (*sql.Rows, error)

type DirectScanDist

type DirectScanDist []any

type Executor

type Executor interface {
	Execute(ctx context.Context, query string, args ...any) (sql.Result, error)
	Query(ctx context.Context, query string, args ...any) (*sql.Rows, error)
}

Jump to

Keyboard shortcuts

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