typeorm-dm is a database dialect package that enables TypeORM to connect and interact with Dameng (DMDB) databases. It acts as an adapter layer between TypeORM and the `dmdb` npm package, which is the official Node.js driver for Dameng. The current stable version is 1.0.43524. The project appears to have a fairly active release cadence, with multiple updates in 2024 and 2025, often driven by changes in the underlying `dmdb` driver. A key differentiator is its explicit requirement to use `DmdbDataSource` rather than relying on TypeORM's automatic driver loading, and its handling of features like `simple-enum` columns by converting them to `varchar` with check constraints. It specifically dropped runtime dependency on `oracledb` in v1.0.26038, highlighting its focus solely on Dameng.
npm install typeorm-dmVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize `DmdbDataSource`, define a TypeORM entity, save a new record, and retrieve all records from a Dameng database.
Ensure you are using `typeorm-dm` version 1.0.43524 or newer with the corresponding compatible `dmdb` version to avoid binding issues.
Upgrade to `typeorm-dm` version 1.0.34946 or later. Review your transaction management if explicit `dmdb` driver options were previously used.
Be aware of this conversion when inspecting your database schema or migrating between database types. Ensure your enum values conform to the `varchar` length limits and the `CHECK` constraint.
Always import and instantiate `DmdbDataSource` directly: `import { DmdbDataSource } from "typeorm-dm"; const AppDataSource = new DmdbDataSource({ ... });`Upgrade to `typeorm-dm` version 1.0.25580 or newer to fix potential issues with mixed parameter placeholder styles.
If you were implicitly relying on `typeorm-dm` to provide `oracledb` functionality, note that this is no longer the case. `typeorm-dm` is now exclusively for Dameng databases and does not support Oracle connections.
Import `DmdbDataSource` directly and instantiate it: `import { DmdbDataSource } from 'typeorm-dm'; const AppDataSource = new DmdbDataSource({ /* ... */ });`When using `DmdbDataSource`, set `type: "oracle"` and `innerType: "dmdb"` in your configuration object. The `type` field uses TypeORM's internal `oracle` driver compatibility layer.