Liking cljdoc? Tell your friends :D

org.clojars.punit-naik.sql-batcher


build-select-queryclj

(build-select-query query pkey-column)
source

execute!clj

(execute! db-spec query pkey-column pkey-batch)

Executes the update/delete query Returns the number of rows processed

Executes the update/delete query
Returns the number of rows processed
sourceraw docstring

get-pkey-batchclj

(get-pkey-batch db-spec select-query offset limit pkey-column)
source

join-clauseclj

(join-clause query)
source

primary-key-columnclj

(primary-key-column query)

Assumes the primary key column to be <table-name>_id

Assumes the primary key column to be `<table-name>_id`
sourceraw docstring

remove-trailing-semicolonclj

(remove-trailing-semicolon s)

Removes semi-colon from the end of a string

Removes semi-colon from the end of a string
sourceraw docstring

set-clauseclj

Gets the set column names and their values from the update query

Gets the set column names and their values from the update query
sourceraw docstring

start-batch-processing!clj

(start-batch-processing! db-spec query batch-size & [pkey-column])
source

table-nameclj

(table-name query)

Gets the name of the table from the large update/delete query

Gets the name of the table from the large update/delete query
sourceraw docstring

update-or-delete-opclj

(update-or-delete-op query)

Checks if the large query is doing an update or delete operation

Checks if the large query is doing an update or delete operation
sourceraw docstring

where-clauseclj

(where-clause query)

Extracts where clause from the large update/delete query

Extracts where clause from the large update/delete query
sourceraw docstring

where-in-clauseclj

(where-in-clause column-name values)
source

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

× close