@decaf-ts/db-decorators
Version:
Agnostic database decorators and repository
25 lines (24 loc) • 742 B
TypeScript
/**
* @summary Set of constants to define db CRUD operations and their equivalent 'on' and 'after' phases
* @const OperationKeys
*
* @memberOf module:db-decorators.Operations
*/
export declare enum OperationKeys {
REFLECT = "decaf.model.db.operations.",
CREATE = "create",
READ = "read",
UPDATE = "update",
DELETE = "delete",
ON = "on.",
AFTER = "after."
}
export type CrudOperations = OperationKeys.CREATE | OperationKeys.READ | OperationKeys.UPDATE | OperationKeys.DELETE;
/**
* @summary Maps out groups of CRUD operations for easier mapping of decorators
*
* @constant DBOperations
*
* @memberOf module:db-decorators.Operations
*/
export declare const DBOperations: Record<string, CrudOperations[]>;