Liking cljdoc? Tell your friends :D

toucan2.tools.compile

Macros that can wrap a form and return the built query, compiled query, etc. without executing it.

Macros that can wrap a form and return the built query, compiled query, etc. without executing it.
raw docstring

buildcljmacro

(build & body)

Return the built query before compilation that would have been executed by body without compiling or executing it.

Return the built query before compilation that would have been executed by `body` without compiling or executing it.
sourceraw docstring

compilecljmacro

(compile & body)

Return the compiled query that would be executed by a form, rather than executing that form itself.

(compile
  (delete/delete :table :id 1))
=>
["DELETE FROM table WHERE ID = ?" 1]
Return the compiled query that would be executed by a form, rather than executing that form itself.

```clj
(compile
  (delete/delete :table :id 1))
=>
["DELETE FROM table WHERE ID = ?" 1]
```
sourceraw docstring

resolvedcljmacro

(resolved & body)

Return the resolved query and parsed args before building a query (e.g. before creating a Honey SQL query from the args passed to toucan2.select/select created by body without building a query, compiling it, or executing it.

Return the resolved query and parsed args *before* building a query (e.g. before creating a Honey SQL query from the
args passed to [[toucan2.select/select]] created by `body` without building a query, compiling it, or executing it.
sourceraw docstring

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

× close