An npm package (v0.1.8) for interacting with an N1 SQL service endpoint, providing a privacy-preserving SQL query builder. It uses a purely functional, fluent API to construct queries against virtual databases. It supports joins, aggregations (sum, count), filters, and can be used both in Node.js (via require) and in the browser (via a bundled script). Release cadence is not specified; the library is currently in early development. Key differentiators: privacy-preserving SQL layer over N1 analytics.
npm install n1-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to an N1 SQL service, selects two tables from a virtual database, joins them on id, sums spend from dp2, filters age > 40, and prints the result rows.
Run: npm install immutable
Always handle the promise: .exec().then(...) or await n1_sql(...).exec()
Treat each method call as creating a new query plan. Do not reuse the same context after calling exec().
Run: npm install immutable
Use: const n1_sql = require('n1-sql'); or import n1_sql from 'n1-sql';Add .then(j => {...}) or use await.