sqlite3

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(query string, values ...interface{}) (sql.Result, error)

Exec handles a sql.Prepare and sql.Exec in one function for sake of simplicity It returns the exec sql.Result and error

func Init

func Init()

Init makes some startup tasks

func Open

func Open() *sqlx.DB

Open creates and returns the filehandle to the sqlite3 database

func Query

func Query(query string, values ...interface{}) (*sql.Rows, error)

Query handles a sql.QueryRow It returns the gotten *sql.Rows and error

func QueryRow

func QueryRow(query string, values ...interface{}) *sql.Row

QueryRow handles a sql.QueryRow It returns the gotten *sql.Rows and error

Types

This section is empty.

Jump to

Keyboard shortcuts

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