Liking cljdoc? Tell your friends :D

qbits.hayt.dsl


add-columnclj

(add-column identifier type)

Clause: takes a table identifier and a column type

Clause: takes a table identifier and a column type
sourceraw docstring

allow-filteringclj

(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
sourceraw docstring

alter-columnclj

(alter-column identifier type)

Clause: takes a table identifier and a column type

Clause: takes a table identifier and a column type
sourceraw docstring

alter-column-familycljdeprecated

source

alter-columnfamilyclj

(alter-columnfamily columnfamily & clauses)

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
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
sourceraw docstring

alter-keyspaceclj

(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.
sourceraw docstring

alter-tableclj

(alter-table table & clauses)

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
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
sourceraw docstring

alter-typeclj

(alter-type type & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#alterTypeStmt
sourceraw docstring

alter-userclj

(alter-user user & clauses)

Takes clauses:

  • password
  • superuser (defaults to false)
Takes clauses:
* password
* superuser (defaults to false)
sourceraw docstring

batchclj

(batch & clauses)

http://cassandra.apache.org/doc/old/CQL-3.0.html#batchStmt

Takes hayt queries optional clauses:

  • queries
  • using
  • counter
  • logged
http://cassandra.apache.org/doc/old/CQL-3.0.html#batchStmt

Takes hayt queries  optional clauses:
* queries
* using
* counter
* logged 
sourceraw docstring

column-definitionsclj

(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.
sourceraw docstring

columnsclj

(columns & columns)

Clause: takes columns identifiers ex: (columns :foo "bar" :baz)

Clause: takes columns identifiers
ex: (columns :foo "bar" :baz) 
sourceraw docstring

counterclj

(counter)
(counter value)

Clause: Sets COUNTER attribute on BATCH queries

Clause: Sets COUNTER attribute on BATCH queries
sourceraw docstring

create-indexclj

(create-index table name & clauses)

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)
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)
sourceraw docstring

create-keyspaceclj

(create-keyspace keyspace & clauses)

http://cassandra.apache.org/doc/old/CQL-3.0.html#createKeyspaceStmt

Takes a keyspace identifier and clauses:

  • with
http://cassandra.apache.org/doc/old/CQL-3.0.html#createKeyspaceStmt

Takes a keyspace identifier and clauses:
* with
sourceraw docstring

create-tableclj

(create-table table & clauses)

Takes a table identifier and additional clause arguments:

  • column-definitions
  • with
Takes a table identifier and additional clause arguments:

* column-definitions
* with
sourceraw docstring

create-triggerclj

(create-trigger trigger table using)
http://cassandra.apache.org/doc/old/CQL-3.0.html#createTriggerStmt
sourceraw docstring

create-typeclj

(create-type type & clauses)
http://cassandra.apache.org/doc/old/CQL-3.0.html#createTypeStmt
sourceraw docstring

create-userclj

(create-user user & clauses)

Takes clauses:

  • password
  • superuser (defaults to false)
Takes clauses:
* password
* superuser (defaults to false)
sourceraw docstring

customclj

(custom)
(custom x)

Clause: Sets CUSTOM status on create-index query

Clause: Sets CUSTOM status on create-index query
sourceraw docstring

deleteclj

(delete table & clauses)

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
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
sourceraw docstring

drop-columnclj

(drop-column id)

Clause: Takes a column Identifier

Clause: Takes a column Identifier
sourceraw docstring

drop-columnfamilyclj

(drop-columnfamily cf & clauses)

http://cassandra.apache.org/doc/old/CQL-3.0.html#dropTableStmt

Takes a column family identifier and additional clauses:

  • if-exists
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropTableStmt

Takes a column family identifier and additional clauses:
* if-exists
sourceraw docstring

drop-indexclj

(drop-index index & clauses)

http://cassandra.apache.org/doc/old/CQL-3.0.html#dropIndexStmt

Takes an index identifier and additional clauses:

  • if-exists
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropIndexStmt

Takes an index identifier and additional clauses:
* if-exists
sourceraw docstring

drop-keyspaceclj

(drop-keyspace keyspace & clauses)

http://cassandra.apache.org/doc/old/CQL-3.0.html#dropKeyspaceStmt

Takes a keyspace identifier and additional clauses:

  • if-exists
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropKeyspaceStmt

Takes a keyspace identifier and additional clauses:
* if-exists
sourceraw docstring

drop-tableclj

(drop-table table & clauses)

http://cassandra.apache.org/doc/old/CQL-3.0.html#dropTableStmt

Takes a table identifier and additional clauses:

  • if-exists
http://cassandra.apache.org/doc/old/CQL-3.0.html#dropTableStmt

Takes a table identifier and additional clauses:
* if-exists
sourceraw docstring

drop-triggerclj

(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
sourceraw docstring

drop-typeclj

(drop-type type & clauses)

http://docs.datastax.com/en/cql/3.3/cql/cql_reference/cqlRefDropType.html

Takes a type identifier and additional clauses:

  • if-exists
http://docs.datastax.com/en/cql/3.3/cql/cql_reference/cqlRefDropType.html

Takes a type identifier and additional clauses:
* if-exists
sourceraw docstring

drop-userclj

(drop-user user & clauses)

Takes a user identifier

  • if-exists
Takes a user identifier
* if-exists
sourceraw docstring

grantclj

(grant perm & clauses)

Takes clauses:

  • resource
  • user
Takes clauses:
* resource
* user
sourceraw docstring

if-existsclj

(if-exists)
(if-exists b)

Clause: Apply only if the target exists

Clause: Apply only if the target exists
sourceraw docstring

if-not-existsclj

(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
sourceraw docstring

index-nameclj

(index-name value)

Clause: Takes an index identifier

Clause: Takes an index identifier
sourceraw docstring

insertclj

(insert table & clauses)

http://cassandra.apache.org/doc/old/CQL-3.0.html#insertStmt

Takes a table identifier and additional clause arguments:

  • values
  • using
  • if-exists
http://cassandra.apache.org/doc/old/CQL-3.0.html#insertStmt

Takes a table identifier and additional clause arguments:
* values
* using
* if-exists
sourceraw docstring

limitclj

(limit n)

Clause: Sets LIMIT, takes a numeric value

Clause: Sets LIMIT, takes a numeric value
sourceraw docstring

list-permclj

(list-perm & clauses)

Takes clauses:

  • perm (defaults to ALL if not supplied)
  • user
  • resource
  • recursive (defaults to true)
Takes clauses:
* perm (defaults to ALL if not supplied)
* user
* resource
* recursive (defaults to true)
sourceraw docstring

list-usersclj

(list-users)
sourceraw docstring

loggedclj

(logged)
(logged value)

Clause: Sets LOGGED/UNLOGGED attribute on BATCH queries

Clause: Sets LOGGED/UNLOGGED attribute on BATCH queries
sourceraw docstring

only-ifclj

(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
sourceraw docstring

only-if'clj

(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
sourceraw docstring

order-byclj

(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])
sourceraw docstring

passwordclj

(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
sourceraw docstring

permclj

(perm value)

Clause: Sets permission to be listed with list-perm

Clause: Sets permission to be listed with list-perm
sourceraw docstring

queriesclj

(queries & queries)

Clause: takes hayt queries to be executed during a batch operation.

Clause: takes hayt queries to be executed during a batch operation.
sourceraw docstring

recursiveclj

(recursive)
(recursive value)

Clause: Sets recusivity on list-perm (LIST PERMISSION) queries

Clause: Sets recusivity on list-perm (LIST PERMISSION) queries
sourceraw docstring

rename-columnclj

(rename-column old-name new-name)

Clause: rename from old-name to new-name

Clause: rename from old-name to new-name
sourceraw docstring

resourceclj

(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
sourceraw docstring

revokeclj

(revoke perm & clauses)

Takes clauses:

  • resource
  • user
Takes clauses:
* resource
* user
sourceraw docstring

selectclj

(select table & clauses)

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
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
sourceraw docstring

set-columnsclj

(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
sourceraw docstring

superuserclj

(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
sourceraw docstring

truncateclj

(truncate table)
http://cassandra.apache.org/doc/old/CQL-3.0.html#truncateStmt

Takes a table identifier.
sourceraw docstring

updateclj

(update table & clauses)

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
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
sourceraw docstring

use-keyspaceclj

(use-keyspace keyspace)
http://cassandra.apache.org/doc/old/CQL-3.0.html#useStmt

Takes a keyspace identifier
sourceraw docstring

userclj

(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
sourceraw docstring

usingclj

(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
sourceraw docstring

valuesclj

(values values)
(values x y & more)

Clause: Takes a map of columns to be inserted

Clause: Takes a map of columns to be inserted
sourceraw docstring

whereclj

(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
sourceraw docstring

where'clj

(where' & args)

Same as where but for people who prefer unrolled args

Same as `where` but for people who prefer unrolled args
sourceraw docstring

where1clj

(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
sourceraw docstring

withclj

(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)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close