New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ezorm/orm

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ezorm/orm

Direct relational ORM, repositories, and schema sync for Ezorm models.

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

@ezorm/orm

@ezorm/orm is the direct Node.js ORM runtime for Ezorm models, including repositories, explicit read queries, and schema push/pull helpers.

Install

npm install @ezorm/core @ezorm/orm

Usage

import { Field, Model, PrimaryKey } from "@ezorm/core";
import { createOrmClient } from "@ezorm/orm";

@Model({
  table: "todos",
  cache: {
    backend: "inherit",
    ttlSeconds: "inherit"
  }
})
class Todo {
  @PrimaryKey()
  @Field.string()
  id!: string;

  @Field.string()
  title!: string;
}

const client = await createOrmClient({
  databaseUrl: "sqlite::memory:",
  readCache: {
    default: {
      backend: "memory",
      ttlSeconds: 30
    },
    byModel: {
      Todo: {
        backend: "file",
        ttlSeconds: 300
      }
    }
  }
});

readCache is opt-in and only applies to repository reads in the direct ORM:

  • repository.findById(...)
  • repository.findMany(...)

TTL is absolute from write time, and create, update, and delete clear that model's cached repository entries.

FAQs

Package last updated on 28 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts