Liking cljdoc? Tell your friends :D

pickdict.database

Database connection and basic operations

Database connection and basic operations
raw docstring

batch-insertclj

(batch-insert db table-name records)

Insert multiple records in a batch

Insert multiple records in a batch
sourceraw docstring

build-count-sqlclj

(build-count-sql table-name)

Build a COUNT SQL statement

Build a COUNT SQL statement
sourceraw docstring

build-create-table-sqlclj

(build-create-table-sql table-name columns)

Build CREATE TABLE SQL statement

Build CREATE TABLE SQL statement
sourceraw docstring

build-delete-sqlclj

(build-delete-sql table-name)

Build a DELETE SQL statement

Build a DELETE SQL statement
sourceraw docstring

build-drop-table-sqlclj

(build-drop-table-sql table-name)

Build DROP TABLE SQL statement

Build DROP TABLE SQL statement
sourceraw docstring

build-insert-sqlclj

(build-insert-sql table-name columns)

Build an INSERT SQL statement

Build an INSERT SQL statement
sourceraw docstring

build-select-sqlclj

(build-select-sql table-name & {:keys [where limit offset]})

Build a SELECT SQL statement

Build a SELECT SQL statement
sourceraw docstring

build-table-exists-sqlclj

(build-table-exists-sql)

Build SQL to check if table exists

Build SQL to check if table exists
sourceraw docstring

build-table-info-sqlclj

(build-table-info-sql table-name)

Build SQL to get table information

Build SQL to get table information
sourceraw docstring

build-update-sqlclj

(build-update-sql table-name columns)

Build an UPDATE SQL statement

Build an UPDATE SQL statement
sourceraw docstring

count-recordsclj

(count-records db table-name)

Count records in a table

Count records in a table
sourceraw docstring

create-tableclj

(create-table db table-name columns)

Create a table with given columns

Create a table with given columns
sourceraw docstring

default-dbclj

source

delete-recordclj

(delete-record db table-name id)

Delete a record by ID

Delete a record by ID
sourceraw docstring

drop-tableclj

(drop-table db table-name)

Drop a table from the database

Drop a table from the database
sourceraw docstring

execute-commandclj

(execute-command db sql params)

Execute a SQL command and return success status

Execute a SQL command and return success status
sourceraw docstring

execute-queryclj

(execute-query db sql params)

Execute a SQL query and return results

Execute a SQL query and return results
sourceraw docstring

extract-generated-idclj

(extract-generated-id insert-result)

Extract the generated ID from insert result

Extract the generated ID from insert result
sourceraw docstring

find-allclj

(find-all db table-name)

Find all records in a table

Find all records in a table
sourceraw docstring

find-by-criteriaclj

(find-by-criteria db table-name criteria)

Find records by criteria

Find records by criteria
sourceraw docstring

find-by-idclj

(find-by-id db table-name id)

Find a record by ID

Find a record by ID
sourceraw docstring

get-table-columnsclj

(get-table-columns db table-name)

Get column names for a table

Get column names for a table
sourceraw docstring

insert-recordclj

(insert-record db table-name record)

Insert a record and return the generated ID

Insert a record and return the generated ID
sourceraw docstring

safe-db-operationclj

(safe-db-operation operation error-message)

Execute database operation with proper error handling

Execute database operation with proper error handling
sourceraw docstring

table-exists?clj

(table-exists? db table-name)

Check if a table exists in the database

Check if a table exists in the database
sourceraw docstring

transactionclj

(transaction db operations)

Execute operations within a database transaction

Execute operations within a database transaction
sourceraw docstring

try-db-operationclj

(try-db-operation operation error-message)

Execute database operation, returning nil on error

Execute database operation, returning nil on error
sourceraw docstring

update-recordclj

(update-record db table-name id updates)

Update a record by ID

Update a record by ID
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close