localdb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalDB

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

func NewLocalDB

func NewLocalDB(fulPath string, clobber bool) (*LocalDB, error)

func (*LocalDB) AddFloatRecord

func (db *LocalDB) AddFloatRecord(tag int, value float64) (sql.Result, error)

func (*LocalDB) AddIntRecord

func (db *LocalDB) AddIntRecord(tag, value int) (sql.Result, error)

func (*LocalDB) EnterData

func (db *LocalDB) EnterData(cmd string) (sql.Result, error)

func (*LocalDB) ForeignKeysAreImplemented

func (db *LocalDB) ForeignKeysAreImplemented() bool

ForeignKeysAreImplemented tests function to ensure foreign key implementation

func (*LocalDB) GetLastRecord

func (db *LocalDB) GetLastRecord(tag int) int

func (*LocalDB) GetSingleInt

func (db *LocalDB) GetSingleInt(query string) int

func (*LocalDB) MakeSchema

func (db *LocalDB) MakeSchema() (sql.Result, error)

func (*LocalDB) Tally

func (db *LocalDB) Tally(tag int) int

Jump to

Keyboard shortcuts

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