A simple ORM for PostgreSQL built over knex.js that works with plain JavaScript objects and arrays. v3.0.1 (latest) is the current stable version, with v2 maintained via `tabel@2`. It differentiates from other ORMs by its minimal abstraction, direct use of objects/arrays, and optional Redis/mysql support. Active development includes async scoper and dynamic query chains. Breaking changes in v3 include the replacement of `autoId` with `uuid` flag.
npm install tabelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connect to PostgreSQL via knex, define a model, and perform a create + find operation.
Change column definition from `autoId: true` to `uuid: true`.
Upgrade to v3 via `npm install tabel@3` and update module imports accordingly.
Use `require()` instead of `import`.
Install knex separately: `npm install knex`.
Use `const tabel = require('tabel');` or configure bundler for CJS.Ensure you call `tabel(knex);` to initialize the ORM.
Install pg: `npm install pg` and configure knex properly.