MySQL adapter for nukak ORM, a TypeScript ORM with declarative JSON query syntax and smart type-safety. Current stable version is 1.9.1. nukak provides a MongoDB-inspired query syntax that compiles to SQL, with full TypeScript inference across joins and nested relations. Unlike traditional ORMs (TypeORM, Sequelize) that use class-based decorators or query builders, nukak serializes queries as JSON, making them transportable from frontend to backend. Supports MySQL, MariaDB, PostgreSQL, SQLite with a unified API. Release cadence is monthly. Requires nukak core ^1.8.1 and mysql2 ^2.3.3 as peer dependencies. Pure ESM package with TypeScript types.
npm install nukak-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows full setup: define a User entity with decorators, create a MySQL connection, instantiate the adapter and querier, then run a query using the repository pattern.
Update nukak to version ^1.8.1 or later.
Use import syntax or dynamic import(). Set your project to type: module in package.json.
Add 'experimentalDecorators': true and 'emitDecoratorMetadata': true to your tsconfig.json.
Create a MySqlQuerier first: new MySqlQuerier(connection), then pass that to MySqlAdapter.
Update mysql2 to ^2.3.3 or later.
Use import syntax: import { MySqlAdapter } from 'nukak-mysql'Create a MySqlQuerier first: new MySqlQuerier(connection), then pass it to MySqlAdapter.
Run: npm install nukak
Update both nukak and nukak-mysql to their latest versions.