Liking cljdoc? Tell your friends :D

views.honeysql.core


hint-typeclj

source

vexec!clj

(vexec! view-system db action-map & [{:keys [namespace] :as options}])

Used to run any SQL insert/update/delete query on the database while ensuring that view hints are sent to the view system to trigger any relevant view refreshes. Use this instead of calling clojure.java.jdbc/execute! or clojure.java.jdbc/insert!. If you need to perform an operation in a transaction use with-view-transaction.

Arguments are:

  • db: a clojure.java.jdbc database connection
  • action-map: the HoneySQL map for the insert/update/delete SQL query

Options are:

  • namespace: a namespace that will be included in the hints sent out
Used to run any SQL insert/update/delete query on the database while ensuring
that view hints are sent to the view system to trigger any relevant view
refreshes. Use this instead of calling clojure.java.jdbc/execute! or
clojure.java.jdbc/insert!. If you need to perform an operation in a transaction
use with-view-transaction.

Arguments are:
- db: a clojure.java.jdbc database connection
- action-map: the HoneySQL map for the insert/update/delete SQL query

Options are:
- namespace: a namespace that will be included in the hints sent out
sourceraw docstring

with-view-transactioncljmacro

(with-view-transaction view-system binding & forms)

Works exactly like clojure.java.jdbc/with-db-transaction. Use this instead to wrap vexec! calls which need to be run in a transaction. Holds all view system hints generated by any vexec! calls within the transaction until the end, at which point they are all sent to the view system.

Works exactly like clojure.java.jdbc/with-db-transaction. Use this instead to wrap
vexec! calls which need to be run in a transaction. Holds all view system hints
generated by any vexec! calls within the transaction until the end, at which point
they are all sent to the view system.
sourceraw docstring

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

× close