txx

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 4 Imported by: 0

README

This package provides transaction helper functions for the github.com/jmoiron/sqlx library.

Documentation

Overview

Package txx provides transaction helper functions for the github.com/jmoiron/sqlx library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InTxx

func InTxx(ctx context.Context, db *sqlx.DB, callback func(tx *sqlx.Tx) error, opts ...*sql.TxOptions) error

InTxx starts a context-aware database transaction wrapper, executes the callback function, and either commits the transaction if the callback exits without an error, or rolls-back the transaction if the callback returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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