Liking cljdoc? Tell your friends :D

views.honeysql.core


execute-honeysql!clj

(execute-honeysql! db hsql-map)

Always return keys for inserts.

Always return keys for inserts.
sourceraw docstring

send-hints!clj

source

set-hint-transport-fn!clj

(set-hint-transport-fn! f)

The hint transport function should take a collection of hints and send them to the configured view system. On a non-distribued server this can be: (fn [hints] (refresh-views! views-config hints))

The hint transport function should take a collection of hints and
send them to the configured view system. On a non-distribued server this
can be: (fn [hints] (refresh-views! views-config hints))
sourceraw docstring

vexec!clj

(vexec! db action-map)

Used to perform arbitrary insert/update/delete actions on the database, while ensuring that view hints are sent to the view system. Arguments are:

  • db: a clojure.java.jdbc database with optional :hints field.

    If hints field is present hints will be conj'd to the collection. Otherwise send-hints function set by set-hint-transport-fn! will be used.

  • action-map: the HoneySQL map for the insert/update/delete action

Used to perform arbitrary insert/update/delete actions on the database,
while ensuring that view hints are sent to the view system.
Arguments are:
- db: a clojure.java.jdbc database with optional :hints field.
 
  If hints field is present hints will be conj'd to the collection.
  Otherwise send-hints function set by set-hint-transport-fn! will
  be used.

- action-map: the HoneySQL map for the insert/update/delete action
sourceraw docstring

with-view-transactioncljmacro

(with-view-transaction binding & forms)

Like with-db-transaction, but sends view hints at end of transaction.

Like with-db-transaction, but sends view hints at end of transaction.
sourceraw docstring

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

× close