sqlweld 0.2.0

Create SQL files from templates and partials
Documentation
1
2
3
4
5
6
{% import "perm_check" as macros %}
UPDATE some_objects
SET value = 'a'
WHERE id=$[obj_id] AND team = $[team_id]
AND {{ macros::perm_check(action="'write'", table="'some_objects'") }}