db

package
v0.0.0-...-8f3fa7a Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: CC0-1.0 Imports: 9 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 interface {
	Tx(ctx context.Context, f func(tx *sql.Tx) error) error
	Close() error
}

type SQLiteDB

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

func NewSQLite

func NewSQLite(path string) (*SQLiteDB, error)

func (*SQLiteDB) Close

func (db *SQLiteDB) Close() error

func (*SQLiteDB) Tx

func (db *SQLiteDB) Tx(ctx context.Context, f func(tx *sql.Tx) error) (err error)

Jump to

Keyboard shortcuts

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