storage

package
v0.0.0-...-df161fc Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Schema = `` /* 1760-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func CreateSchema

func CreateSchema(db Queryer)

func InitDB

func InitDB(filepath string) *sql.DB

func PreparedExec

func PreparedExec(db Queryer, query string, args ...interface{}) (int64, error)

func PreparedQuery

func PreparedQuery(db Queryer, query string, args ...interface{}) *sql.Rows

func PreparedQueryRow

func PreparedQueryRow(db Queryer, query string, args ...interface{}) *sql.Row

Types

type Queryer

type Queryer interface {
	Query(string, ...interface{}) (*sql.Rows, error)
	QueryRow(string, ...interface{}) *sql.Row
	Prepare(string) (*sql.Stmt, error)
	Exec(string, ...interface{}) (sql.Result, error)
}

Jump to

Keyboard shortcuts

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