Patio is a Sequel-inspired query engine and ORM for Node.js (v4.2.1) that lets developers choose their abstraction level: full ORM, query builder via Database/Dataset, or raw SQL. Released as stable with moderate cadence; supports PostgreSQL and MySQL. Differentiated by automatic model definition from database schemas and flexible querying. Requires Node >= 10.0.0 and the 'comb' package.
npm install patioNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connect to a PostgreSQL database, create a users table, define a model, insert a record, and query all records.
Restart your application or re-define the model after schema changes.
Switch to 'patio' as the single dependency.
Run npm install comb patio
npm install comb
Use var Model = require('patio'); var MyModel = Model('tablename');Start PostgreSQL/MySQL and verify connection URL.