qbits.hayt.dsl.clause
allow-filtering
(allow-filtering value)(allow-filtering)Clause: sets ALLOW FILTERING on select queries, defaults to true is used without a value
alter-column
(alter-column identifier type)Clause: takes a table identifier and a column type
column-definitions
(column-definitions column-definitions)Clause: Takes a map of columns definitions (keys are identifiers , values, types), to be used with create-table.
columns
(columns & columns)Clause: takes columns identifiers ex: (columns :foo “bar” :baz)
if-not-exists
(if-not-exists b)(if-not-exists)DEPRECATED use (if-exists false) Clause: Apply only if the row does not exist
only-if
(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
only-if'
(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
order-by
(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])
password
(password value)Clause: To be used with alter-user and create-user, sets password
queries
(queries & queries)Clause: takes hayt queries to be executed during a batch operation.
recursive
(recursive value)(recursive)Clause: Sets recusivity on list-perm (LIST PERMISSION) queries
resource
(resource value)Clause: Sets resource to be modified/used with grant or list-perm
set-columns
(set-columns values)(set-columns x y & more)Clause: Takes a map of columns to be updated
superuser
(superuser value)(superuser)Clause: To be used with alter-user and create-user, sets superuser status
using
(using opts)(using x y & more)Clause: Sets USING, takes keyword/value pairs for :timestamp and :ttl
where
(where args)Clause: takes a map or a vector of pairs to compose the where clause of a select/update/delete query
with
(with values)(with x y & more)Clause: compiles to a CQL with clause (possibly nested maps)