database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const OrderASC = "ASC"
View Source
const OrderDESC = "DESC"

Variables

This section is empty.

Functions

func InTransaction

func InTransaction[R any](ctx context.Context, db *Database, fn func(ctx context.Context, tx bob.Tx) (R, error)) (R, error)

Types

type Database

type Database struct {
	bob.DB
}

func (*Database) InTransaction

func (db *Database) InTransaction(ctx context.Context, fn func(ctx context.Context, tx bob.Tx) error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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