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.
16 lines (13 loc) • 309 B
text/typescript
import { EntityData, IEntityType } from '../decorators';
export interface ChangeSet<T extends IEntityType<T>> {
name: string;
collection: string;
type: ChangeSetType;
entity: T;
payload: EntityData<T>;
}
export enum ChangeSetType {
CREATE = 'create',
UPDATE = 'update',
DELETE = 'delete',
}