database

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package database adds small, explicit helpers around database/sql.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transaction

func Transaction(ctx context.Context, db *sql.DB, options *sql.TxOptions, work func(*sql.Tx) error) (err error)

Transaction commits when work succeeds and rolls back on error or panic. The callback must not commit or roll back the transaction itself.

Types

This section is empty.

Directories

Path Synopsis
Package migrate applies paired .up.sql and .down.sql files using database/sql.
Package migrate applies paired .up.sql and .down.sql files using database/sql.

Jump to

Keyboard shortcuts

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