cassandra

package
v0.0.0-...-32823bc Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Database Initial setup helper

Index

Constants

This section is empty.

Variables

View Source
var Session *gocql.Session

global session to query

Functions

func Close

func Close()

func Connect

func Connect(ip string, keyspace string) *gocql.Session

Connect to a Cassandra node to a keyspace

func Exec

func Exec(query string) (bool, error)

func Insert

func Insert(table string, row map[string]interface{}) (bool, error)

func Select

func Select(table string, columns string, where map[string]interface{}, limit int) *gocql.Iter

func SetupDB

func SetupDB()

Add the alters, create and other modification of DB in the queries array and the server will execute them all on boot time

func Update

func Update(table string, where map[string]interface{}, row map[string]interface{}) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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