driver

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: LGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func New

func New(db *sql.DB) (*Driver, error)

func (*Driver) Migrate added in v0.23.0

func (d *Driver) Migrate(fsys fs.FS) error

func (*Driver) WithQuery

func (d *Driver) WithQuery(fn Query) error

func (*Driver) WithTransaction

func (d *Driver) WithTransaction(ctx context.Context, fn Transaction) error

type Migration added in v0.23.0

type Migration struct {
	FileName string
	Query    string
}

type Query

type Query func(*sql.DB) error

type Transaction

type Transaction func(*sql.Tx) error

Jump to

Keyboard shortcuts

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