Unified ORM for fibjs supporting SQLite, MySQL, and PostgreSQL. Version 2.1.0, stable with ongoing maintenance. Uses a synchronous API via fibjs coroutines, different from Node.js ORMs like Sequelize. Ships TypeScript type definitions. Designed specifically for fibjs runtime; not compatible with Node.js or other JavaScript runtimes.
npm install fib-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to an SQLite database, defines a model, syncs the schema, creates a record, and queries it.
Use version 1.x if you need Redis or MongoDB support.
You must install and use fibjs (https://fibjs.org) as your JavaScript runtime.
Use async methods (e.g., ORM.connect instead of ORM.connectSync) and await them.
Refer to documentation or source for untyped methods.
Run npm install fib-orm and ensure you are using fibjs (not node).
Use import ORM from 'fib-orm' or const ORM = require('fib-orm'); then call ORM.connectSync.Use fib-orm@1.x for Redis support.