durable

package
v0.0.0-...-78afc55 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	*sql.DB
}

func NewDatabase

func NewDatabase(ctx context.Context, db *sql.DB) (*Database, error)

func (*Database) RunInTransaction

func (d *Database) RunInTransaction(ctx context.Context, fn func(ctx context.Context, tx *sql.Tx) error) error

type Row

type Row interface {
	Scan(dest ...interface{}) error
}

Jump to

Keyboard shortcuts

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