SQL support for Orbit, a library for managing data synchronization and caching in JavaScript applications. orbit-sql provides SQL query building via Knex for server-side Orbit apps using PostgreSQL, MySQL, or SQLite. Current stable version is 0.4.2. The library integrates with the Orbit ecosystem, enabling SQL-backed records and queries. It is released on an as-needed basis, with a focus on Knex-based SQL support rather than raw queries. Key differentiators: built specifically for Orbit's data model, leverages Knex for cross-dialect compatibility, and provides typed query results in TypeScript.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM is preferred; CommonJS require works with TypeScript esModuleInterop. Ensure Orbit is also imported.
Default export is the orbitSQL object; named exports also available.
Tree-shakable named imports reduce bundle size.
Sets up an in-memory SQLite database with Knex and runs a query using orbit-sql.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.