sqlutil

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transaction

func Transaction(db *sql.DB, f func(tx *sql.Tx) error) error

Transaction runs a function within a transaction.

func TransactionContext

func TransactionContext(db *sql.DB, ctx context.Context, opts *sql.TxOptions, f func(tx *sql.Tx) error) error

TransactionContext runs a function within a transaction using the provided context and options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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