database

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: BSD-3-Clause Imports: 7 Imported by: 21

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(dsn string) (*SQLiteDatabase, error)

func NewDBWithDriver

func NewDBWithDriver(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