@axion-io/mikroorm-adapter
v0.0.1
Published
Bridges MikroORM SQL entity managers to @axion-io/core SqlExecutor and TransactionRunner.
Readme
@axion-io/mikroorm-adapter
MikroORM SQL compatibility for Axion SQL ports.
This package exposes MikroOrmSqlAdapter and MikroOrmTransactionRunner over SQL-driver EntityManager shapes with execute and transactional methods.
import { MikroOrmSqlAdapter, MikroOrmTransactionRunner } from "@axion-io/mikroorm-adapter";
import { PostgresOperationManager } from "@axion-io/postgres";
const sql = new MikroOrmSqlAdapter(orm.em);
const transactions = new MikroOrmTransactionRunner(orm.em);
const operationManager = new PostgresOperationManager(sql, transactions);Axion SQL uses PostgreSQL $N placeholders. The adapter translates those placeholders to positional ? bindings without rewriting placeholders inside SQL literals, identifiers, or dollar-quoted blocks.
Scope
- MikroORM SQL drivers validated for PostgreSQL-style Axion runtime SQL.
- No entity mappings required for Axion runtime tables.
- Connection lifecycle remains application-owned.
