WoowahanORM is a light promise-based Node.js ORM for MySQL, providing simple Model queries (INSERT, UPDATE, SELECT, DELETE), type validations, and automatic table synchronization for migration. Currently at version 2.0.1, it follows Semantic Versioning. It requires mysql2 as a peer dependency. Unlike heavier ORMs like Sequelize or TypeORM, it emphasizes minimalism and straightforward CRUD operations with built-in validation and default fields (id, createdAt, updatedAt, isDeleted). It supports common DataTypes and filters out unspecified attributes.
npm install woowahan-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MySQL, defines a Product model with validation, creates a record, and queries all records.
Replace import statements with const { Model, DataTypes } = require('woowahan-orm')Run 'npm install mysql2' alongside woowahan-ORM
Use sync: { force: false } for development and manage migrations manually.Omit these fields from your model attributes.
Ensure all input attributes are defined in the model to avoid silent filtering.
npm install mysql2
Use const woowahanORM = require('woowahan-orm')Switch to require() syntax or configure your project to use CommonJS