sql-stamp
JSON →sql-stamp is a tiny SQL templating library (v0.8.0) focused on simplicity and keeping SQL clean and readable. It supports conditional placeholders (`{=key, default}` for parameterized values, `{!key}` for raw values), ternary switches (`{?key, truthy, falsey}`), and file inclusion (`{>path}`). It automatically converts most placeholders to `?` for injection-safe parameterized queries. Unlike HTML template engines, it avoids loops and complex conditionals. Release cadence is low; last commit was 2019. Key differentiator: it outputs both SQL string and args array, integrating well with database drivers.
Resources
packagesql-stamp ↗