database

package
v0.0.0-...-1d7a7e7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBSelect *sqlx.DB

DBSelect is the database reference for selects

View Source
var DBUpdate *sqlx.DB

DBUpdate is the database reference for updates

View Source
var Map map[string]string

Map for types

Functions

func BuildQuery

func BuildQuery(query models.Query) string

BuildQuery takes a Query object and returns a string of the query

func GetColumns

func GetColumns(tables []string) []string

GetColumns returns colums based off of table names

func GetTables

func GetTables() []string

GetTables gets all of the tables in the db

func Init

func Init(dbName, connectionstring string, DB *sqlx.DB) *sqlx.DB

Init creates a connection to the database

func MapSuper

func MapSuper() map[string]string

MapSuper makes a map

Types

This section is empty.

Jump to

Keyboard shortcuts

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