Documentation ¶
Overview ¶
This package generates all kind of CQL statements
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKeyspace ¶
func CreateTable ¶
func CreateTable(keySpace, cf string, partitionKeys, colKeys []string, fields []string, values []interface{}) (string, error)
CREATE TABLE users (
user_name varchar PRIMARY KEY, password varchar, gender varchar, session_token varchar, state varchar, birth_year bigint
);
CREATE TABLE emp (
empID int, deptID int, first_name varchar, last_name varchar, PRIMARY KEY (empID, deptID)
);
func DeleteById ¶
DELETE email, phone
FROM users USING CONSISTENCY QUORUM AND TIMESTAMP 1318452291034 WHERE user_name = 'jsmith';
func UseKeyspace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.