sqlx

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: BSD-2-Clause Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanToStruct

func ScanToStruct(obj interface{}, q goyesql.Queries, db *sqlx.DB) error

ScanToStruct prepares a given set of Queries and assigns the resulting *sqlx.Stmt or *sqlx.NamedStmt statements to the fields of a given struct, matching based on the name in the `query` tag in the struct field names.

func ScanWithContext added in v2.2.0

func ScanWithContext(ctx context.Context, obj interface{}, q goyesql.Queries, db *sqlx.DB) error

ScanWithContext prepares a given set of Queries and assigns the resulting *sqlx.Stmt or *sqlx.NamedStmt statement. It calls sqlx methods with context to pass metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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