Documentation ¶
Index ¶
- Constants
- Variables
- func AExecuteBatch(alias string, batch *gocql.Batch) error
- func AQuery(alias, stmt string, values ...interface{}) *gocql.Query
- func Delete(table string, data interface{}) error
- func ExecuteBatch(batch *gocql.Batch) error
- func Insert(table string, data interface{}, stmtExtras ...string) error
- func NewKeyspaceSession(keyspace, alias string) (*gocql.Session, error)
- func ParseUUID(input string) (gocql.UUID, error)
- func Query(stmt string, values ...interface{}) *gocql.Query
- func Select(table string) *selectQuery
- func TimeUUID() gocql.UUID
- func Update(table string, data interface{}) error
- type JSONTime
- type Order
Constants ¶
View Source
const (
MAIN_KEYSPACE_ALIAS = "__main__"
)
Variables ¶
View Source
var QUERY_AND = " AND "
View Source
var QUERY_DELETE = "DELETE FROM %s WHERE %s"
View Source
var QUERY_INSERT = "INSERT INTO %s (%s) VALUES(%s)"
View Source
var QUERY_ITEM = "%s = ?"
View Source
var QUERY_SELECT = "SELECT %s FROM "
View Source
var QUERY_SEPARATOR = ", "
View Source
var QUERY_UPDATE = "UPDATE %s SET %s WHERE %s"
View Source
var Sessions map[string]*gocql.Session
View Source
var TAG_NAME = "cassandra"
Functions ¶
func ExecuteBatch ¶
Types ¶
type JSONTime ¶
func (JSONTime) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.