Liking cljdoc? Tell your friends :D

ch-tools.ch


add-batch!clj

(add-batch! p-st values)

Add row of data to prepared statement

Add row of data to prepared statement
sourceraw docstring

column-desc-queryclj

(column-desc-query [key desc])
source

conj-fieldsclj

(conj-fields rec & fields)

Add field(s) to table record

Add field(s) to table record
sourceraw docstring

connectclj

(connect url)

Connect to Clickhouse

Connect to Clickhouse
sourceraw docstring

connect-stclj

(connect-st url & args)

Connect to Clickhouse

Connect to Clickhouse
sourceraw docstring

copy-tableclj

(copy-table st from to)
source

create-db!clj

(create-db! url)
(create-db! c db)

Execute CREATE DATABASE statement

Execute CREATE DATABASE statement
sourceraw docstring

create-table-queryclj

(create-table-query name
                    rec
                    &
                    {:keys [order-by engine partition-by settings]
                     :or {engine "MergeTree()" settings []}})

Return create table query

Return create table query
sourceraw docstring

current-dbclj

(current-db c)
source

db-table-keyclj

(db-table-key item)
source

descr-to-recclj

(descr-to-rec
  {name :name type :type def-expr :default_expression codec :codec_expression})
source

describe-tableclj

(describe-table c table)
source

ensure-tables!clj

(ensure-tables! conn tables-map)

Ensure that tables created and have all needed columns

Ensure that tables created and have all needed columns
sourceraw docstring

exec!cljmultimethod

Execute SQL query

Execute SQL query
sourceraw docstring

exec-describe-table!clj

(exec-describe-table! c table)
source

exec-vec!clj

(exec-vec! conn queries)

Execute vec of queries

Execute vec of queries
sourceraw docstring

fetch-allclj

(fetch-all result-set)
(fetch-all conn query)

Fetch all rows from result-set into vectors

Fetch all rows from result-set into vectors
sourceraw docstring

fetch-all-hmclj

(fetch-all-hm result-set)
(fetch-all-hm conn query)

Fetch all rows from result-set into hashmaps

Fetch all rows from result-set into hashmaps
sourceraw docstring

fetch-colsclj

(fetch-cols c table)
source

fetch-oneclj

(fetch-one result-set)
(fetch-one conn query)
source

fetch-partitionsclj

(fetch-partitions st & {:keys [db]})

Fetch partitions

Fetch partitions
sourceraw docstring

fetch-rowclj

(fetch-row result-set metadata)
source

fetch-row-hmclj

(fetch-row-hm result-set metadata)
source

fetch-storageclj

(fetch-storage conn)
(fetch-storage conn db)
source

fetch-tablesclj

(fetch-tables c)

Fetch all table names from current DB

Fetch all table names from current DB
sourceraw docstring

fetcherclj

(fetcher row-fn result-set)
source

get-metadataclj

(get-metadata result-set)
source

get-metadata'clj

(get-metadata' result-set)
source

insert-many!clj

(insert-many! conn query items)

Insert many rows of data

Insert many rows of data
sourceraw docstring

insert-queryclj

(insert-query table rec)
source

parse-urlclj

(parse-url url)
source

read-result-setcljmultimethod

source

set-pst-itemcljmultimethod

source

set-pst-item!clj

(set-pst-item! p-st i v)
source

show-tableclj

(show-table c table)
source

use!clj

(use! c db)

Execute USE statement

Execute USE statement
sourceraw docstring

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

× close