dbtxn

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MPL-2.0 Imports: 4 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteDBQuery

func ExecuteDBQuery(ctx context.Context, db *sql.DB, params map[string]string, query string) error

ExecuteDBQuery handles executing one single statement while properly releasing its resources. - ctx: Required - db: Required - config: Optional, may be nil - query: Required

func ExecuteDBQueryDirect added in v0.5.0

func ExecuteDBQueryDirect(ctx context.Context, db *sql.DB, params map[string]string, query string) error

ExecuteDBQueryDirect handles executing one single statement without preparing the query before executing it, which can be more efficient. - ctx: Required - db: Required - config: Optional, may be nil - query: Required

func ExecuteTxQuery

func ExecuteTxQuery(ctx context.Context, tx *sql.Tx, params map[string]string, query string) error

ExecuteTxQuery handles executing one single statement while properly releasing its resources. - ctx: Required - tx: Required - config: Optional, may be nil - query: Required

func ExecuteTxQueryDirect added in v0.5.0

func ExecuteTxQueryDirect(ctx context.Context, tx *sql.Tx, params map[string]string, query string) error

ExecuteTxQueryDirect handles executing one single statement. - ctx: Required - tx: Required - config: Optional, may be nil - query: Required

Types

This section is empty.

Jump to

Keyboard shortcuts

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