New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@moirae/typeorm

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moirae/typeorm

A Moirae plugin leveraging a SQL database providing: - EventStore: entity model for the database table - TypeORMStore: overriding the default `EVENT_STORE` token

  • 0.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@moirae/typeorm

A Moirae plugin leveraging a SQL database providing:

  • EventStore: entity model for the database table

  • TypeORMStore: overriding the default EVENT_STORE token

  • KeyValue: entity model for a key-value cache

  • SetRoot/SetValue: entity models for a set cache

  • TypeORMCache: overriding the default CACHE token

Compatibility

The following have been tested with Moirae and are known to be compatible.

  • sqlite3
  • postgresql

Usage

When using this module, it's required to explicitly import TypeOrmModule.forFeature(<EntityArr>) into the Moirae config. The <EntityArr> should contain:

  • The EventStore entity if using TypeORM as an event store
  • The CACHE_ENTITIES array if using TypeORM as a cache

The TypeORM plugin may be used as an event store, a cache, or both.

MoiraeModule.forRootAsync({
    cache: {
        type: "typeorm",
    },
    imports: [TypeOrmModule.forFeature([EventStore, CACHE_ENTITIES])],
    store: {
        type: "typeorm",
    }
})

FAQs

Package last updated on 21 Nov 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc