blakeembrey/sql-template-tag
View on GitHub ↗ ★ 393 TypeScript
ES2015 tagged template string for preparing SQL statements, works with `pg`, `mysql`, `sqlite` and `oracledb`
5 mentions on Hacker News by 5 people: 1 story, 4 comments · first 2020-05-06 · latest 2024-12-06
20082026
-
…numbers.) This is a concept that’s definitely been done seriously. The first search result I found: https://github.com/blakeembrey/sql-template-tag .
comment by chrismorgan · 2024-12-06 · in Trailbase: Fast, single-file, open-source app server built using Rust and SQLite -
You can avoid this entirely with JavaScript's tagged template literals. Here is an example library: https://github.com/blakeembrey/sql-template-tag
comment by ZitchDog · 2023-08-14 · in Python: Just Write SQL -
Have you considered a tagged template literal sql builder, such as https://github.com/blakeembrey/sql-template-tag ? Keeps the SQL syntax so less to learn, but still offers parametrized queries.
comment by dsego · 2021-02-09 · in Objection to ORM Hatred -
…[1] https://github.com/felixfbecker/node-sql-template-strings [2] https://github.com/blakeembrey/sql-template-tag [3] https://www.npmjs.com/search?q=sql%20template Edit: When I first read your comment, I thought you were say
comment by __ryan__ · 2020-09-03 · in Show HN: ORM for TypeScript with no query-builder, supporting full SQL queries -
▲ 1
ES2015 tagged template string for preparing SQL statementsstory by ducaale · 2020-05-06 · 0 comments