cockroachdb

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRDB

type CRDB struct {
	*sql.DB
	*migrate.Migrate
}

func New

func New(dbUrl, migrationsUrl string) (*CRDB, error)

func (*CRDB) ExecuteTx

func (db *CRDB) ExecuteTx(ctx context.Context, txOpts *sql.TxOptions, txFn TxFn) error

func (*CRDB) MigrateDown

func (db *CRDB) MigrateDown() error

func (*CRDB) MigrateUp

func (db *CRDB) MigrateUp() error

type TxFn

type TxFn = func(*sql.Tx) error

Jump to

Keyboard shortcuts

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