db

package
v0.0.0-...-1f73362 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func Connect

func Connect(dbURL string) (*DB, error)

func (*DB) DB

func (db *DB) DB() *sql.DB

func (*DB) DownMigration

func (db *DB) DownMigration() error

func (*DB) StartTx

func (db *DB) StartTx(ctx context.Context, f func(*sql.Tx) error) error

func (*DB) UpMigration

func (db *DB) UpMigration() error

Jump to

Keyboard shortcuts

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