sqlite_db

package
v0.0.0-...-c235f1d Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLDB

type SQLDB struct {
	Db *sql.DB
}

custom wrapper for sqlite db object

func CreateDbConnection

func CreateDbConnection() *SQLDB

CreateDbConnection initializes the sqlite

func (*SQLDB) DropTable

func (db *SQLDB) DropTable(table string) error

DropTable drops the table after testing

func (*SQLDB) PopulateDB

func (db *SQLDB) PopulateDB(table string) error

PopulateDB initializes the db with table structure and initial values

Jump to

Keyboard shortcuts

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