ES2015 tagged template string for preparing SQL statements, works with `pg`, `mysql`, and `sqlite`
MIT License
Bot releases are hidden (Show)
Published by blakeembrey 6 months ago
Added
Fixed
https://github.com/blakeembrey/sql-template-tag/compare/v5.2.0...v5.2.1
Published by blakeembrey 11 months ago
Published by blakeembrey about 1 year ago
Added
bulk
method (#31) 51ed0bchttps://github.com/blakeembrey/sql-template-tag/compare/v5.0.3...v5.1.0
Published by blakeembrey over 2 years ago
Fixed
https://github.com/blakeembrey/sql-template-tag/compare/v5.0.2...v5.0.3
Published by blakeembrey over 2 years ago
Improved performance across the main use-cases:
sql
method shows 14% improvementtext
method shows 4% improvementThese are pretty minor adjustments so feel free to test it on your OS and JS configurations to confirm whether these changes help.
Published by blakeembrey over 2 years ago
Fixed
https://github.com/blakeembrey/sql-template-tag/compare/v5.0.0...v5.0.1
Published by blakeembrey over 2 years ago
Changed
Added
https://github.com/blakeembrey/sql-template-tag/compare/v4.1.0...v5.0.0
Published by blakeembrey over 2 years ago
Fixed/changed
sql
(#15) a10d034https://github.com/blakeembrey/sql-template-tag/compare/v4.0.0...v4.1.0
Published by blakeembrey about 4 years ago
In the initial release I used raw strings, but this creates confusion and bugs on how the string should be interpreted, preferring to use the plain JS strings instead (more info at #11).
Published by blakeembrey over 4 years ago
Fixed
Changed
raw*
properties (previously protected properties)Published by blakeembrey almost 5 years ago
join
for empty arrays (#4)Published by blakeembrey over 5 years ago
Added
text
and sql
properties) and values
output to reduce repeated usage overheadPublished by blakeembrey over 5 years ago
Added
sqltag
as default exportPublished by blakeembrey over 5 years ago
Fixed
undefined
and null
as values in TypeScriptPublished by blakeembrey over 6 years ago
Added
package.json
descriptionPublished by blakeembrey over 6 years ago
Module for building SQL queries from tagged template strings in JavaScript.