UNPKG

@mikro-orm/core

Version:

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 JavaScript.

14 lines (13 loc) 516 B
import type { EntityMetadata } from '../typings'; import type { Logger } from '../logging/Logger'; export interface IConfiguration { get(key: string, defaultValue?: any): any; getLogger(): Logger; } export declare abstract class MetadataProvider { protected readonly config: IConfiguration; constructor(config: IConfiguration); abstract loadEntityMetadata(meta: EntityMetadata, name: string): void; loadFromCache(meta: EntityMetadata, cache: EntityMetadata): void; useCache(): boolean; }