import { ICommandInstance } from '@midwayjs/command-core'; import { GeneratorSharedOptions } from '../utils'; import { GeneratorCoreWrapperArgs } from '../../utils'; export interface ORMOptions extends GeneratorSharedOptions { /** * @description Import namespace for @midwayjs/orm import * @value axios */ namespace: string; /** * @description Use Active-Record mode in entity class * @value true */ activeRecord?: boolean; /** * @description Generate relation sample props in entity class * @value true */ relation?: boolean; /** * @description Listen to transaction in subscriber class * @value true */ transaction?: boolean; /** * @description Class identifier, works in entity / subscriber */ class?: string; } export declare enum TypeORMGeneratorType { SETUP = "setup", ENTITY = "entity", SUBSCRIBER = "subscriber" } export declare const DEFAULT_ENTITY_DIR_PATH = "entity"; export declare const DEFAULT_SUBSCRIBER_DIR_PATH = "entity/subscriber"; export declare const ORM_DEP: string[]; export declare const WriterGenerator: TypeORMGeneratorType[]; export declare const mountORMCommand: () => ICommandInstance; declare const ormHandler: (arg: GeneratorCoreWrapperArgs) => Promise; export default ormHandler; //# sourceMappingURL=orm.handler.d.ts.map