package
Version:
v0.0.0-...-361378c
Opens a new window with list of versions in this module.
Published: Feb 11, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func CreateTable(db *sql.DB, tableName string) error
-
func DB() (*sql.DB, error)
-
func Insert(db *sql.DB, id int, phoneNumber, tableName string) (int, error)
-
func Report(db *sql.DB, tableName string) (*sql.Rows, error)
-
func Reset(db *sql.DB, tableName string) (*sql.DB, error)
CreateTable creates the table 'tableName' in the database 'db'
DB initalises a sqlite3 DB and returns it
Insert inserts phoneNumber into db
Report returns the present state of the table 'tableName'
Reset resets the given database 'db'
Source Files
¶
Click to show internal directories.
Click to hide internal directories.