Liking cljdoc? Tell your friends :D

clanhr.postgres-gateway.core

Async access utilities to postgres

Async access utilities to postgres
raw docstring

async-gocljmacro

(async-go config query & body)

Wraps core.async/go and handles exceptions and tracks elasped time

Wraps core.async/go and handles exceptions and tracks elasped time
sourceraw docstring

build-resultcljmacro

(build-result config query response & body)

Verifies the response and short-circuit's it if it's an error/exception. If it's ok, runs the given forms

Verifies the response and short-circuit's it if it's an error/exception.
If it's ok, runs the given forms
sourceraw docstring

bulk-save-models!clj

(bulk-save-models! models config)

Saves a collection for models. TODO: fully async and in a transaction

Saves a collection for models.
TODO: fully async and in a transaction
sourceraw docstring

count-modelsclj

(count-models raw-query config)

Utility around count

Utility around count
sourceraw docstring

delete-modelsclj

(delete-models raw-query config)

Utility around delete

Utility around delete
sourceraw docstring

get-modelclj

(get-model model-id config)

Gets a model given its id

Gets a model given its id
sourceraw docstring

queryclj

(query raw-query config)

Runs a query on the database

Runs a query on the database
sourceraw docstring

query-dataclj

(query-data raw-query config)

Runs a query on the database and returns raw data

Runs a query on the database and returns raw data
sourceraw docstring

query-oneclj

(query-one raw-query config)

Runs a query on the database and returns only one model

Runs a query on the database and returns only one model
sourceraw docstring

query-return-number-of-affected-rowsclj

(query-return-number-of-affected-rows raw-query config)
source

save-data!clj

(save-data! data config)

Saves arbitrary data

Saves arbitrary data
sourceraw docstring

save-model!clj

(save-model! model config)

Saves a model to the datastore

Saves a model to the datastore
sourceraw docstring

save-model-with-id!clj

(save-model-with-id! model config)

Saves a model with id to the datastore

Saves a model with id to the datastore
sourceraw docstring

update-modelsclj

(update-models raw-query config)

Utility around update

Utility around update
sourceraw docstring

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

× close