Orma is a JSON-based, statically typed query language for SQL databases that converts parsable, serializable, and type-safe JSON syntax into SQL strings. It supports MySQL, PostgreSQL, and SQLite, offering features like validation, multi-tenancy, database introspection, declarative foreign keys, nested queries and mutations, mixed operations, dynamic types, batching, and query planning. Version 1.0.282 is the current stable version, with frequent releases. Unlike other ORMs, Orma is pure JS with no code generation and allows use of your own database connector.
npm install ormaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows querying users with their posts and creating a new user using Orma's JSON syntax with mysql2 adapter.
Set `multipleStatements: true` in your pool configuration.
Use named imports like `import { orma_query } from 'orma'`.Use `pool.promise()` to get the promise-based interface.
Replace `import orma from 'orma'` with `import { orma_query } from 'orma'`.Add `multipleStatements: true` to the pool configuration.
Call `pool.promise()` and pass the result to mysql2_adapter.
No dependency data recorded yet.