MariaDB adapter for nukak, a TypeScript ORM with a declarative JSON query syntax and smart type-safety. Current stable version is 1.9.1, released frequently (multiple minor versions per month). Differentiators: unified API across PostgreSQL, MySQL, MariaDB, SQLite, and MongoDB; serializable JSON queries; naming strategies (e.g., camelCase to snake_case); built-in serialization for thread safety; supports soft-delete, virtual fields, repositories, and migrations. Peer dependencies: mariadb ^3.0.2 and nukak ^1.8.1. Pure ESM package; no CJS support.
npm install nukak-mariaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Set up a MariaDB connector, define an entity with decorators, and run a query with $select, $where, and $limit.
Use import syntax or dynamic import(). Ensure 'type': 'module' in package.json.
Add "experimentalDecorators": true and "emitDecoratorMetadata": true to your tsconfig.json compilerOptions.
Annotate every entity class that will be persisted with @Serialized().
Run: npm install mariadb
Import from 'nukak-maria' instead of 'nukak'.
Run npm install nukak-maria and ensure tsconfig.json includes 'moduleResolution': 'node' or 'node16'.
Add 'type': 'module' to package.json or rename .js files to .mjs.
Use query.findMany(...). Note: find() is not a method; use findFirst(), findMany(), or findOne().
import { closeAllConnections } from 'nukak-maria' instead of 'nukak'.