cql
CQL / Cassandra query builder: select, insert, update, delete, batch.
Load with: use cql
Quick example
use cql
result = cqlsl("value", "value")
prn(result)
Functions
Functions
cqlsl(table, cols)
Performs the operation. Takes table, cols.
cqlin(table)
Initialises. Takes table.
cqlup(table)
Updates. Takes table.
cqldl(table)
Deletes an item. Takes table.
cqlwh(q, col, op, val)
Performs the operation. Takes q, col, op, val.
cqlob(q, col, dir)
Performs the operation. Takes q, col, dir.
cqllm(q, n)
Returns limits or constraints. Takes q, n.
cqlst(q, col, val)
Sets a value or starts a process. Takes q, col, val.
cqlvl(q, col, val)
Validates. Takes q, col, val.
cqltl(q, secs)
Performs the operation. Takes q, secs.
cqlqu(v)
Performs the operation. Takes v.
cqlwc(whr)
Performs the operation. Takes whr.
cqlbd(q)
Performs the operation. Takes q.
cqlbt(queries)
Performs the operation. Takes queries.
Module aliases
These are the public-facing names you call with use cql:
cql.sel(t, c)cql.ins(t)cql.upd(t)cql.del(t)cql.whr(q, c, o, v)cql.ord(q, c, d)cql.lim(q, n)cql.set(q, c, v)cql.val(q, c, v)cql.ttl(q, s)cql.bld(q)cql.bat(qs)
Notes
- Cassandra Query Language helpers.