Lightweight MySQL data mapper ORM for Node.js (v1.11.0). Provides a simple API for defining models with typed columns, associations, and automatic query building. Supports promises, repository pattern, and custom queries. Released under MIT. Differentiator: minimalistic design with no heavy dependencies, focuses on data mapping rather than full ORM.
npm install loke-mysql-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a database connection, defines a Pet model, and queries by name.
Explicitly add nullable: true to allow NULL values.
Ensure the referenced repository is defined before the parent.
Use schema objects with type property.
Always attach a .catch() handler or use async/await with try/catch.
Use const { create } = require('loke-mysql-orm') then create(url);Ensure table 'Pets' exists or set autoCreate: true in options.
Verify database connection URL and call create() before using db.