@anncic-api/typeorm 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configuration.js +1 -1
- package/dist/decorator/InjectEntity.js +1 -1
- package/dist/decorator/InjectRepository.js +1 -1
- package/dist/decorator/ProvideEntity.js +1 -1
- package/dist/decorator/ProvideRepository.js +1 -1
- package/dist/decorator/ProvideSearch.js +1 -1
- package/dist/decorator/VirtualColumn.js +1 -1
- package/dist/definition/Repository.js +1 -1
- package/dist/helper/getDataSourceEntity.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interface.js +1 -1
- package/package.json +3 -3
- package/dist/decorator/ModelSearch.d.ts +0 -2
- package/dist/decorator/ModelSearch.js +0 -1
- package/dist/definitions/Repository.d.ts +0 -21
- package/dist/definitions/Repository.js +0 -1
- package/dist/helpers/getDataSourceEntity.d.ts +0 -1
- package/dist/helpers/getDataSourceEntity.js +0 -1
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IMidwayApplication } from '@midwayjs/core';
|
|
2
|
-
import { Repository as BaseRepository, EntityManager, ObjectLiteral, DeepPartial, QueryRunner } from "typeorm";
|
|
3
|
-
import { SearchOperatorOption, SearchPaginateOption } from "../interface";
|
|
4
|
-
interface modelSearch {
|
|
5
|
-
model: any;
|
|
6
|
-
searchs: any[];
|
|
7
|
-
}
|
|
8
|
-
declare type IsolationLevel = "READ UNCOMMITTED" | "READ COMMITTED" | "REPEATABLE READ" | "SERIALIZABLE";
|
|
9
|
-
export declare class Repository<Entity extends ObjectLiteral> extends BaseRepository<Entity> {
|
|
10
|
-
readonly app: IMidwayApplication;
|
|
11
|
-
readonly modelSearchs: modelSearch[];
|
|
12
|
-
constructor(app: IMidwayApplication, repository: BaseRepository<Entity>);
|
|
13
|
-
search(params?: SearchOperatorOption<Entity> | DeepPartial<Entity> | {
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}, paginate?: SearchPaginateOption, queryRunner?: QueryRunner): Promise<import("typeorm").SelectQueryBuilder<Entity>>;
|
|
16
|
-
mergeSave(mergeIntoEntity: Entity, ...entityLikes: DeepPartial<Entity>[]): Promise<Entity>;
|
|
17
|
-
createSave(mergeIntoEntity: DeepPartial<Entity>, ...entityLikes: DeepPartial<Entity>[]): Promise<Entity>;
|
|
18
|
-
transaction<T>(runInTransaction: (manager: EntityManager) => Promise<T>): Promise<T>;
|
|
19
|
-
transaction<T>(isolationLevel: IsolationLevel, runInTransaction: (manager: EntityManager) => Promise<T>): Promise<T>;
|
|
20
|
-
}
|
|
21
|
-
export {};
|