This namespace contains aliases for qbits.dsl.*, qbits.fns and qbits.utils
This namespace contains aliases for qbits.dsl.*, qbits.fns and qbits.utils
Compiles a hayt query into its raw string value
Compiles a hayt query into its raw string value
? can be used as a query value to mark a prepared statement value ex: (select :foo (where [[> :foo ?] [< :foo 2]]]))
? can be used as a query value to mark a prepared statement value ex: (select :foo (where [[> :foo ?] [< :foo 2]]]))
(add-column identifier type)
Clause: takes a table identifier and a column type
Clause: takes a table identifier and a column type
(allow-filtering)
(allow-filtering value)
Clause: sets ALLOW FILTERING on select queries, defaults to true is used without a value
Clause: sets ALLOW FILTERING on select queries, defaults to true is used without a value
(alter-column identifier type)
Clause: takes a table identifier and a column type
Clause: takes a table identifier and a column type
(alter-columnfamily columnfamily & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#alterTableStmt
Takes a columnfamiliy identifier and additional clause arguments:
http://cassandra.apache.org/doc/old/CQL-3.0.html#alterTableStmt Takes a columnfamiliy identifier and additional clause arguments: * alter-column * add-column * alter-column * rename-column * drop-column * with
(alter-keyspace keyspace & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#alterKeyspaceStmt
Takes a keyspace identifier and a with
clause.
http://cassandra.apache.org/doc/old/CQL-3.0.html#alterKeyspaceStmt Takes a keyspace identifier and a `with` clause.
(alter-table table & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#alterTableStmt
Takes a table identifier and additional clause arguments:
http://cassandra.apache.org/doc/old/CQL-3.0.html#alterTableStmt Takes a table identifier and additional clause arguments: * alter-column * add-column * alter-column * rename-column * drop-column * with
(alter-type type & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#alterTypeStmt
(alter-user user & clauses)
Takes clauses:
Takes clauses: * password * superuser (defaults to false)
Append/conjoin element to Map/Set/List
Append/conjoin element to Map/Set/List
(as selector id)
Aliases a column (selector) to another identifier (id)
Aliases a column (selector) to another identifier (id)
(ascii->blob x__1775__auto__)
Converts ascii to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts ascii to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(batch & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#batchStmt
Takes hayt queries optional clauses:
http://cassandra.apache.org/doc/old/CQL-3.0.html#batchStmt Takes hayt queries optional clauses: * queries * using * counter * logged
(bigint->blob x__1775__auto__)
Converts bigint to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts bigint to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->ascii x__1775__auto__)
Converts blob to ascii. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to ascii. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->bigint x__1775__auto__)
Converts blob to bigint. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to bigint. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->boolean x__1775__auto__)
Converts blob to boolean. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to boolean. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->counter x__1775__auto__)
Converts blob to counter. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to counter. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->decimal x__1775__auto__)
Converts blob to decimal. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to decimal. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->double x__1775__auto__)
Converts blob to double. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to double. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->float x__1775__auto__)
Converts blob to float. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to float. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->inet x__1775__auto__)
Converts blob to inet. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to inet. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->int x__1775__auto__)
Converts blob to int. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to int. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->text x__1775__auto__)
Converts blob to text. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to text. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->timestamp x__1775__auto__)
Converts blob to timestamp. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to timestamp. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->timeuuid x__1775__auto__)
Converts blob to timeuuid. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to timeuuid. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->uuid x__1775__auto__)
Converts blob to uuid. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to uuid. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->varchar x__1775__auto__)
Converts blob to varchar. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to varchar. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(blob->varint x__1775__auto__)
Converts blob to varint. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts blob to varint. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(boolean->blob x__1775__auto__)
Converts boolean to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts boolean to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(column-definitions column-definitions)
Clause: Takes a map of columns definitions (keys are identifiers , values, types), to be used with create-table.
Clause: Takes a map of columns definitions (keys are identifiers , values, types), to be used with create-table.
(columns & columns)
Clause: takes columns identifiers ex: (columns :foo "bar" :baz)
Clause: takes columns identifiers ex: (columns :foo "bar" :baz)
contains
can be used as a query value to mark CONTAINS in where clause
ex: (select :foo (where [[contains :foo ...]]]))
`contains` can be used as a query value to mark CONTAINS in where clause ex: (select :foo (where [[contains :foo ...]]]))
contains-key
can be used as a query value to mark CONTAINS-KEY in where clause
ex: (select :foo (where [[contains :foo ...]]]))
`contains-key` can be used as a query value to mark CONTAINS-KEY in where clause ex: (select :foo (where [[contains :foo ...]]]))
(counter)
(counter value)
Clause: Sets COUNTER attribute on BATCH queries
Clause: Sets COUNTER attribute on BATCH queries
(counter->blob x__1775__auto__)
Converts counter to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts counter to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(cql-fn name & args)
Calls supplied function by name, with the supplied args
Calls supplied function by name, with the supplied args
(cql-ns & xs)
handles namespaced identifiers
handles namespaced identifiers
(cql-raw x)
Allows to pass raw (assumed safe) content, no escaping will be applied.
Allows to pass raw (assumed safe) content, no escaping will be applied.
(create-index table name & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#createIndexStmt
Takes a table identifier and additional clause arguments:
http://cassandra.apache.org/doc/old/CQL-3.0.html#createIndexStmt Takes a table identifier and additional clause arguments: * index-column * index-name * custom * on (overwrites table id)
(create-keyspace keyspace & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#createKeyspaceStmt
Takes a keyspace identifier and clauses:
http://cassandra.apache.org/doc/old/CQL-3.0.html#createKeyspaceStmt Takes a keyspace identifier and clauses: * with
(create-table table & clauses)
Takes a table identifier and additional clause arguments:
Takes a table identifier and additional clause arguments: * column-definitions * with
(create-trigger trigger table using)
http://cassandra.apache.org/doc/old/CQL-3.0.html#createTriggerStmt
(create-type type & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#createTypeStmt
(create-user user & clauses)
Takes clauses:
Takes clauses: * password * superuser (defaults to false)
(custom)
(custom x)
Clause: Sets CUSTOM status on create-index query
Clause: Sets CUSTOM status on create-index query
(date-of x)
DEPRECATED: USE to-date instead http://cassandra.apache.org/doc/old/CQL-3.0.html#timeuuidFun
Returns a dateOf function with the supplied argument
DEPRECATED: USE to-date instead http://cassandra.apache.org/doc/old/CQL-3.0.html#timeuuidFun Returns a dateOf function with the supplied argument
Decrement counter by x, usable in values
and set-columns
Decrement counter by x, usable in `values` and `set-columns`
(decimal->blob x__1775__auto__)
Converts decimal to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts decimal to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(delete table & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#deleteStmt
Takes a table identifier and additional clause arguments:
http://cassandra.apache.org/doc/old/CQL-3.0.html#deleteStmt Takes a table identifier and additional clause arguments: * columns (defaults to *) * using * where * only-if
(distinct* & xs)
Returns DISTINCT column id ex: (select :table (columns (distinct :foo)))
Returns DISTINCT column id ex: `(select :table (columns (distinct :foo)))`
(double->blob x__1775__auto__)
Converts double to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts double to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(drop-column id)
Clause: Takes a column Identifier
Clause: Takes a column Identifier
(drop-columnfamily cf & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropTableStmt
Takes a column family identifier and additional clauses:
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropTableStmt Takes a column family identifier and additional clauses: * if-exists
(drop-index index & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropIndexStmt
Takes an index identifier and additional clauses:
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropIndexStmt Takes an index identifier and additional clauses: * if-exists
(drop-keyspace keyspace & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropKeyspaceStmt
Takes a keyspace identifier and additional clauses:
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropKeyspaceStmt Takes a keyspace identifier and additional clauses: * if-exists
(drop-table table & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropTableStmt
Takes a table identifier and additional clauses:
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropTableStmt Takes a table identifier and additional clauses: * if-exists
(drop-trigger trigger table)
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropTriggerStmt
Takes a trigger identifier and a table identifier
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropTriggerStmt Takes a trigger identifier and a table identifier
(drop-type type & clauses)
http://docs.datastax.com/en/cql/3.3/cql/cql_reference/cqlRefDropType.html
Takes a type identifier and additional clauses:
http://docs.datastax.com/en/cql/3.3/cql/cql_reference/cqlRefDropType.html Takes a type identifier and additional clauses: * if-exists
(drop-user user & clauses)
Takes a user identifier
Takes a user identifier * if-exists
(float->blob x__1775__auto__)
Converts float to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts float to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Generates a frozen type definition, takes n arguments
Generates a frozen type definition, takes n arguments
(grant perm & clauses)
Takes clauses:
Takes clauses: * resource * user
(if-exists)
(if-exists b)
Clause: Apply only if the target exists
Clause: Apply only if the target exists
(if-not-exists)
(if-not-exists b)
DEPRECATED use (if-exists false) Clause: Apply only if the row does not exist
DEPRECATED use (if-exists false) Clause: Apply only if the row does not exist
in
can be used as a query value to mark IN in where clause
ex: (select :foo (where [[in :foo [1 2 3]]]))
`in` can be used as a query value to mark IN in where clause ex: (select :foo (where [[in :foo [1 2 3]]]))
Increment counter by x, usable in values
and set-columns
Increment counter by x, usable in `values` and `set-columns`
(index-name value)
Clause: Takes an index identifier
Clause: Takes an index identifier
(inet->blob x__1775__auto__)
Converts inet to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts inet to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(insert table & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#insertStmt
Takes a table identifier and additional clause arguments:
http://cassandra.apache.org/doc/old/CQL-3.0.html#insertStmt Takes a table identifier and additional clause arguments: * values * using * if-exists
(int->blob x__1775__auto__)
Converts int to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts int to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(limit n)
Clause: Sets LIMIT, takes a numeric value
Clause: Sets LIMIT, takes a numeric value
(list-perm & clauses)
Takes clauses:
Takes clauses: * perm (defaults to ALL if not supplied) * user * resource * recursive (defaults to true)
Generates a list type definition, takes a single argument indicating the list elements type
Generates a list type definition, takes a single argument indicating the list elements type
(logged)
(logged value)
Clause: Sets LOGGED/UNLOGGED attribute on BATCH queries
Clause: Sets LOGGED/UNLOGGED attribute on BATCH queries
Generates a map type definition, takes 2 arguments, for key and value types
Generates a map type definition, takes 2 arguments, for key and value types
(max-timeuuid date)
http://cassandra.apache.org/doc/old/CQL-3.0.html#timeuuidFun
(min-timeuuid date)
http://cassandra.apache.org/doc/old/CQL-3.0.html#timeuuidFun
(only-if args)
Clause: takes a map or a vector of pairs (same as where
) to compose the if
clause of a update/delete query
Clause: takes a map or a vector of pairs (same as `where`) to compose the if clause of a update/delete query
(only-if' & args)
Clause: takes a map or a vector of pairs (same as where
) to compose the if
clause of a update/delete query
Clause: takes a map or a vector of pairs (same as `where`) to compose the if clause of a update/delete query
(order-by & columns)
Clause: takes vectors of 2 elements, where the first is the column identifier and the second is the ordering as keyword. ex: (order-by [:asc :desc])
Clause: takes vectors of 2 elements, where the first is the column identifier and the second is the ordering as keyword. ex: (order-by [:asc :desc])
(password value)
Clause: To be used with alter-user and create-user, sets password
Clause: To be used with alter-user and create-user, sets password
(perm value)
Clause: Sets permission to be listed with list-perm
Clause: Sets permission to be listed with list-perm
(queries & queries)
Clause: takes hayt queries to be executed during a batch operation.
Clause: takes hayt queries to be executed during a batch operation.
(recursive)
(recursive value)
Clause: Sets recusivity on list-perm (LIST PERMISSION) queries
Clause: Sets recusivity on list-perm (LIST PERMISSION) queries
(rename-column old-name new-name)
Clause: rename from old-name to new-name
Clause: rename from old-name to new-name
(resource value)
Clause: Sets resource to be modified/used with grant or list-perm
Clause: Sets resource to be modified/used with grant or list-perm
(revoke perm & clauses)
Takes clauses:
Takes clauses: * resource * user
(select table & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#selectStmt
Takes a table identifier and additional clause arguments:
http://cassandra.apache.org/doc/old/CQL-3.0.html#selectStmt Takes a table identifier and additional clause arguments: * columns (defaults to *) * where * order-by * limit * only-if
(set-columns values)
(set-columns x y & more)
Clause: Takes a map of columns to be updated
Clause: Takes a map of columns to be updated
Generates a set type definition, takes a single argument indicating the set elements type
Generates a set type definition, takes a single argument indicating the set elements type
(superuser)
(superuser value)
Clause: To be used with alter-user and create-user, sets superuser status
Clause: To be used with alter-user and create-user, sets superuser status
(text->blob x__1775__auto__)
Converts text to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts text to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(timestamp->blob x__1775__auto__)
Converts timestamp to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts timestamp to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(timeuuid->blob x__1775__auto__)
Converts timeuuid to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts timeuuid to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(to-date x)
http://cassandra.apache.org/doc/old/CQL-3.0.html#timeFun
Converts the timestamp/timeuuid argument into a date type
http://cassandra.apache.org/doc/old/CQL-3.0.html#timeFun Converts the timestamp/timeuuid argument into a date type
(to-timestamp x)
http://cassandra.apache.org/doc/old/CQL-3.0.html#timeFun
Converts the timestamp/timeuuid argument into a timestamp type
http://cassandra.apache.org/doc/old/CQL-3.0.html#timeFun Converts the timestamp/timeuuid argument into a timestamp type
(to-unix-timestamp x)
http://cassandra.apache.org/doc/old/CQL-3.0.html#timeFun
Converts the timestamp/timeuuid/date argument into a bigInt raw value
http://cassandra.apache.org/doc/old/CQL-3.0.html#timeFun Converts the timestamp/timeuuid/date argument into a bigInt raw value
(token & tokens)
http://cassandra.apache.org/doc/old/CQL-3.0.html#selectStmt
Returns a token function with the supplied argument
http://cassandra.apache.org/doc/old/CQL-3.0.html#selectStmt Returns a token function with the supplied argument
(truncate table)
http://cassandra.apache.org/doc/old/CQL-3.0.html#truncateStmt
Takes a table identifier.
http://cassandra.apache.org/doc/old/CQL-3.0.html#truncateStmt Takes a table identifier.
(ttl x)
http://cassandra.apache.org/doc/old/CQL-3.0.html#selectStmt
Returns a TTL function with the supplied argument
http://cassandra.apache.org/doc/old/CQL-3.0.html#selectStmt Returns a TTL function with the supplied argument
Generates a tuple type definition, takes n arguments
Generates a tuple type definition, takes n arguments
(unix-timestamp-of x)
DEPRECATED: USE to-unix-timestamp instead http://cassandra.apache.org/doc/old/CQL-3.0.html#timeuuidFun
Returns a unixTimestampOf function with the supplied argument
DEPRECATED: USE to-unix-timestamp instead http://cassandra.apache.org/doc/old/CQL-3.0.html#timeuuidFun Returns a unixTimestampOf function with the supplied argument
(update table & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#updateStmt
Takes a table identifier and additional clause arguments:
http://cassandra.apache.org/doc/old/CQL-3.0.html#updateStmt Takes a table identifier and additional clause arguments: * using * set-columns * where * only-if * if-exists
(use-keyspace keyspace)
http://cassandra.apache.org/doc/old/CQL-3.0.html#useStmt
Takes a keyspace identifier
http://cassandra.apache.org/doc/old/CQL-3.0.html#useStmt Takes a keyspace identifier
(user value)
Clause: Sets user to be modified/used with grant or list-perm
Clause: Sets user to be modified/used with grant or list-perm
(user-type m)
Marks a map as User Data Type
Marks a map as User Data Type
(using opts)
(using x y & more)
Clause: Sets USING, takes keyword/value pairs for :timestamp and :ttl
Clause: Sets USING, takes keyword/value pairs for :timestamp and :ttl
(uuid->blob x__1775__auto__)
Converts uuid to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts uuid to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(values values)
(values x y & more)
Clause: Takes a map of columns to be inserted
Clause: Takes a map of columns to be inserted
(varchar->blob x__1775__auto__)
Converts varchar to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts varchar to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(varint->blob x__1775__auto__)
Converts varint to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
Converts varint to blob. See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#functions
(where args)
Clause: takes a map or a vector of pairs to compose the where clause of a select/update/delete query
Clause: takes a map or a vector of pairs to compose the where clause of a select/update/delete query
(where' & args)
Same as where
but for people who prefer unrolled args
Same as `where` but for people who prefer unrolled args
(where1 args)
(where1 x y & more)
backward compatible with hayt 1.0 and 2.0 betas
backward compatible with hayt 1.0 and 2.0 betas
(with values)
(with x y & more)
Clause: compiles to a CQL with clause (possibly nested maps)
Clause: compiles to a CQL with clause (possibly nested maps)
(writetime x)
http://cassandra.apache.org/doc/old/CQL-3.0.html#selectStmt
Returns a WRITETIME function with the supplied argument
http://cassandra.apache.org/doc/old/CQL-3.0.html#selectStmt Returns a WRITETIME function with the supplied argument
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close