Skip to main content
Home
Works with
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
JSR Score41%
Publisheda year ago (0.0.3)

TypeScript-only ORM

dORM

A fork of MikroORM for Deno. Currently, extremely unstable.

It only supports:

  • Typescript
  • PostgreSQL
  • Manual configuration
  • TSMorph metadata provider
  • No metadata cache
  • No bundling

Example usage:

import {Configuration, defineConfig, Entity, PrimaryKey, MikroORM, Property} from '@dorm/core';
import {PostgreSqlDriver} from '@dorm/postgresql';

@Entity({ tableName: "test" })
class TestEntity {
    @PrimaryKey()
    id!: number;

    @Property()
    name!: string;
}

const config = defineConfig({
    debug: true,
    driver: PostgreSqlDriver,
    password: "postgres",
    dbName: "postgres",
    entities: [
        TestEntity,
    ],
    allowGlobalContext: true,
});

const configObj = new Configuration(config);

const orm = await MikroORM.init(configObj);

console.log(await orm.em.find(TestEntity, { id: 1 }));

// Cleanup
orm.close();

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@dorm/core

Import symbol

import * as core from "@dorm/core";
or

Import directly with a jsr specifier

import * as core from "jsr:@dorm/core";

Add Package

pnpm i jsr:@dorm/core
or (using pnpm 10.8 or older)
pnpm dlx jsr add @dorm/core

Import symbol

import * as core from "@dorm/core";

Add Package

yarn add jsr:@dorm/core
or (using Yarn 4.8 or older)
yarn dlx jsr add @dorm/core

Import symbol

import * as core from "@dorm/core";

Add Package

vlt install jsr:@dorm/core

Import symbol

import * as core from "@dorm/core";

Add Package

npx jsr add @dorm/core

Import symbol

import * as core from "@dorm/core";

Add Package

bunx jsr add @dorm/core

Import symbol

import * as core from "@dorm/core";