UNPKG

quaerateum

Version:

Simple typescript ORM for node.js based on data-mapper, unit-of-work and identity-map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JS.

15 lines (13 loc) 246 B
export enum ReferenceType { SCALAR = 'scalar', ONE_TO_ONE = '1:1', ONE_TO_MANY = '1:m', MANY_TO_ONE = 'm:1', MANY_TO_MANY = 'm:n', } export enum Cascade { PERSIST = 'persist', MERGE = 'merge', REMOVE = 'remove', ALL = 'all', }