(parse sql)(parse sql {:keys [no-header file]})Parse hugsql SQL string and return sequence of statement definitions of the form: {:hdr {:name ["my-query"] :doc ["my doc string"] :command [":?"] :result [":1"] :file "sql/queries.sql" :line 12} :sql ["select * from emp where id = " {:type :v :name :id}]}
Throws clojure.lang.ExceptionInfo on error.
Parse hugsql SQL string and return
sequence of statement definitions
of the form:
{:hdr {:name ["my-query"]
:doc ["my doc string"]
:command [":?"]
:result [":1"]
:file "sql/queries.sql"
:line 12}
:sql ["select * from emp where id = "
{:type :v :name :id}]}
Throws clojure.lang.ExceptionInfo on error.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |