A lightweight utility for converting JSON objects to SQL SELECT queries. Currently at version 1.1.4, it supports SELECT statements with fields, aggregations, WHERE clauses (including logical operators, date ranges), GROUP BY, ORDER BY, and misc clauses. It is not actively maintained and only supports SELECT queries; INSERT, UPDATE, DELETE are absent. Simpler than alternatives like json-sql or squel, but with limited features.
npm install json-sql-utilityNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Builds a SELECT SQL query from a JSON object with fields, aggregation, WHERE conditions, grouping, ordering, and misc clauses.
Use a different library like knex.js or json-sql for full SQL support.
Check the source or documentation for supported operators. Only a limited set is implemented.
Pass dates as ISO strings (e.g., '1975-01-01') to ensure consistent formatting.
Sanitize inputs manually or migrate to a maintained alternative.
Use `import { select } from 'json-sql-utility'`Use `import { select } from 'json-sql-utility'`Use `const { select } = require('json-sql-utility')`No dependency data recorded yet.