A library for SQL composition in BuckleScript (ReasonML/OCaml). Current stable version is 4.0.0. It provides a fluent API for building SQL SELECT queries with fields, joins, where clauses, ordering, grouping, and distinct modifiers. It automatically adds 'WHERE 1=1' to simplify compound conditions. The library is designed for compile-to-JS environments like ReasonML and BuckleScript, not for plain JavaScript or TypeScript. Releases appear infrequent, with v4 being the latest major version.
npm install bs-sql-composerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows building a SELECT query with field, from, where, orderBy, and converting to SQL string.
Ensure your WHERE clauses start with AND/OR; if you need a bare WHERE, manually handle query building.
Use '|> toSql' without ()
Use in ReasonML/OCaml project with bsconfig.json; not importable via npm in JS/TS
Add 'bs-sql-composer' to 'bs-dependencies' array in bsconfig.json
Use toSql without parentheses: |. toSql
No dependency data recorded yet.