Liking cljdoc? Tell your friends :D

sqlforcql.querybuilder


get-all-queryclj

(get-all-query table-name)
(get-all-query keyspace table-name)

Constructs a select * from table-name query.

Constructs a `select * from table-name` query.
sourceraw docstring

get-by-non-pk-col-queryclj

(get-by-non-pk-col-query table-name non-pk-col-name-value-map)
(get-by-non-pk-col-query keyspace table-name non-pk-col-name-value-map)

Constructs a select * from table-name where non-pk-col = value allow filtering query.

Constructs a `select * from table-name where non-pk-col = value allow filtering` query.
sourceraw docstring

get-by-pk-col-queryclj

(get-by-pk-col-query table-name pk-col-name-value-map)
(get-by-pk-col-query keyspace table-name pk-col-name-value-map)

Constructs a select * from table-name where pk-col-name = value query.

Constructs a `select * from table-name where pk-col-name = value` query.
sourceraw docstring

get-count-queryclj

(get-count-query table-name)
(get-count-query keyspace table-name)

Constructs a select count(*) from table-name query.

Constructs a `select count(*) from table-name` query.
sourceraw docstring

get-table-nameclj

(get-table-name keyspace table-name)

Get the name of the table 't' prefixed with the name of the keyspace 'k' followed by a '.' i.e. returns 'k.t'.

Get the name of the table 't' prefixed with the name of the keyspace 'k' followed by a '.'
i.e. returns 'k.t'.
sourceraw docstring

keywordize-table-nameclj

(keywordize-table-name table-name)
(keywordize-table-name keyspace table-name)

Converts the name of the table table-name into a keyword. If the name of the keyspace is also specified, then it converts keyspace.table-name into a keyword.

Converts the name of the table `table-name` into a keyword. If the name
of the keyspace is also specified, then it converts `keyspace.table-name`
into a keyword.
sourceraw docstring

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

× close