Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2020 (2)
20082026
  1. …numbers.) This is a concept that’s definitely been done seriously. The first search result I found: https://github.com/blakeembrey/sql-template-tag .
  2. 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
  3. 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
  4. …[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