2-way SQL is a style of SQL templating where:
For example:
SELECT *
FROM users
WHERE id = /*$id*/1
Rendered with:
{:id 42}
becomes:
SELECT *
FROM users
WHERE id = ?
with params:
[42]
Why this style is useful:
Bisql keeps the syntax deliberately small. It supports:
IN (...)if / elseif / else / endfor ... separating ...Bisql does not try to become a full templating language.
See also:
Can you improve this documentation?Edit on GitHub
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 |