database

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: BSD-3-Clause Imports: 7 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteDatabase

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

func NewDB

func NewDB(ctx context.Context, dsn string) (*SQLiteDatabase, error)

func NewDBWithDriver

func NewDBWithDriver(ctx context.Context, driver string, dsn string) (*SQLiteDatabase, error)

func (*SQLiteDatabase) Close

func (db *SQLiteDatabase) Close() error

func (*SQLiteDatabase) Conn

func (db *SQLiteDatabase) Conn() (*sql.DB, error)

func (*SQLiteDatabase) DSN

func (db *SQLiteDatabase) DSN() string

func (*SQLiteDatabase) LiveHardDieFast

func (db *SQLiteDatabase) LiveHardDieFast() error

func (*SQLiteDatabase) Lock

func (db *SQLiteDatabase) Lock() error

func (*SQLiteDatabase) Unlock

func (db *SQLiteDatabase) Unlock() error

Jump to

Keyboard shortcuts

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