vault: github.com/hashicorp/vault/sdk/helper/dbtxn Index | Files

package dbtxn

import "github.com/hashicorp/vault/sdk/helper/dbtxn"

Index

Package Files

dbtxn.go

func ExecuteDBQuery Uses

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 Uses

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

Package dbtxn imports 4 packages (graph) and is imported by 6 packages. Updated 2019-04-15. Refresh now. Tools for package owners.