adapters

package
v0.0.0-...-c097de5 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2017 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SelectFrom = `select * from `

Variables

This section is empty.

Functions

func CheckDatabase

func CheckDatabase(name string)

func CheckField

func CheckField(table, field string) bool

func CheckTable

func CheckTable(table string) bool

func Conn

func Conn(database string) (db *sql.DB)

Conn : Creates a new Database connection and assigns it to db

func Insertinto

func Insertinto(table string, j *jason.Object) (sucess bool)

func JSONify

func JSONify(rows *sql.Rows) (string, error)

func PrepareConn

func PrepareConn(database string) string

func PrepareInsertQuery

func PrepareInsertQuery(query string, j map[string]*jason.Value) (statement string)

func PrepareSelectQuery

func PrepareSelectQuery(table, field string, page, pagesize int) (preparedQuery string)

func ProcessGet

func ProcessGet(table, field, value, page, pagesize string) []byte

func ProcessPost

func ProcessPost(j *jason.Object, table string) string

func ProcessPut

func ProcessPut(j *jason.Object, table string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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