DbORM is a Node.js ORM for MySQL that returns promises. It requires each table to have a primary key named 'id'. Version 2.2.7 ships TypeScript types. Provides CRUD operations (add, get, getList, update, updateByIds, updateByQuery, getCount) with a map-based field conversion system. Unlike other ORMs, it uses a db2ramFieldMap for field name mapping and can handle JSON fields via textDbFieldsMap. Configuration includes connection limit, multiple statements, and error code customization. Released at an unknown cadence.
npm install dborm-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the ORM with database config, field mapping, and performs basic CRUD operations (add, get, getList, update, getCount).
Ensure your MySQL tables have an auto-increment primary key column named 'id'.
Follow current documentation or consider migrating to newer parameter patterns if they become available.
Include all relevant fields in db2ramFieldMap, even if they have the same name in the database.
Ensure only text/JSON columns are listed; add fields that store serialized JSON objects.
const dbORM = require('dborm-mysql')({ dbConfig: {...}, ... });Add the missing field to db2ramFieldMap under the correct table name.
Ensure the table exists and is spelled correctly in the dbORM() call.