Back to godoc.org
github.com/hashicorp/vault/sdk / helper / dbtxn

package dbtxn

v0.1.13
Latest Go to latest
Published: Jul 25, 2019 | License: MPL-2.0 | Module: github.com/hashicorp/vault/sdk

Index

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier