Documentation ¶
Overview ¶
Database Initial setup helper
Index ¶
- Variables
- func Close()
- func Connect(ip string, keyspace string) *gocql.Session
- func Exec(query string) (bool, error)
- func Insert(table string, row map[string]interface{}) (bool, error)
- func Select(table string, columns string, where map[string]interface{}, limit int) *gocql.Iter
- func SetupDB()
- func Update(table string, where map[string]interface{}, row map[string]interface{}) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Session *gocql.Session
global session to query
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.