Functional wrapper around sql-template-strings providing an fp-ts-friendly, pipeable API for building parameterized SQL queries. v1.1.0 is current, with a focus on FP patterns using fp-ts. Requires peer dependencies fp-ts ^2.9.5 and sql-template-strings ^2.2.2. Differentiates from raw sql-template-strings by offering pointfree combinators (append, setName, useBind) for composing queries without imperative statements.
npm install sql-template-strings-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a parameterized SQL query using the t template tag and appending clauses via pipe.
Use backticks with ${} syntax.Switch to `import * as SQL from 'sql-template-strings-ts'`.
Ensure sql-template-strings is at ^2.2.2.
Always use t tag for dynamic values.
npm install fp-ts sql-template-strings sql-template-strings-ts
import { t } from 'sql-template-strings-ts'npm install fp-ts
import { append } from 'sql-template-strings-ts'