Async access utilities to postgres
Async access utilities to postgres
(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
(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
(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
(count-models raw-query config)
Utility around count
Utility around count
(delete-models raw-query config)
Utility around delete
Utility around delete
(get-model model-id config)
Gets a model given its id
Gets a model given its id
(query raw-query config)
Runs a query on the database
Runs a query on the database
(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
(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
(query-return-number-of-affected-rows raw-query config)
(save-model! model config)
Saves a model to the datastore
Saves a model to the datastore
(save-model-with-id! model config)
Saves a model with id to the datastore
Saves a model with id to the datastore
(update-models raw-query config)
Utility around update
Utility around update
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close