db

package
v0.0.0-...-e62e01f Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(sql string, params ...interface{}) (sql.Result, error)

func Initalise

func Initalise()

func Insert

func Insert(sql string, params ...interface{}) *query

func QueryRec

func QueryRec(sql string, params ...interface{}) *query

QueryRec is an embeddable SQL query

func QueryRows

func QueryRows(sql string, params ...interface{}) *query

QueryRows is for multi-row SQL queries

func ScanRec

func ScanRec(q *query, params ...interface{}) error

ScanRec returns the results for a single row SQL query

func ScanRows

func ScanRows(q *query, callback func(), params ...interface{}) error

ScanRows returns the results of a multi-row SQL query via the callback function

Types

This section is empty.

Jump to

Keyboard shortcuts

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