dbtxn

package
v0.11.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: MPL-2.0 Imports: 4 Imported by: 0

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 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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