vona-module-a-orm 5.1.20 → 5.1.24
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/bean/bean.database.d.ts +1 -1
- package/dist/bean/bean.database.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/bean.model/bean.model_meta.d.ts +1 -1
- package/dist/lib/bean.model/bean.model_meta.d.ts.map +1 -1
- package/dist/lib/dto/dtoAggregate.d.ts +1 -1
- package/dist/lib/dto/dtoAggregate.d.ts.map +1 -1
- package/dist/lib/dto/dtoCreate.d.ts +1 -1
- package/dist/lib/dto/dtoCreate.d.ts.map +1 -1
- package/dist/lib/dto/dtoGroup.d.ts +1 -1
- package/dist/lib/dto/dtoGroup.d.ts.map +1 -1
- package/dist/lib/dto/dtoSelectAndCount.d.ts +1 -1
- package/dist/lib/dto/dtoSelectAndCount.d.ts.map +1 -1
- package/dist/lib/dto/dtoUpdate.d.ts +1 -1
- package/dist/lib/dto/dtoUpdate.d.ts.map +1 -1
- package/dist/lib/modelCacheBase.d.ts +1 -1
- package/dist/lib/modelCacheBase.d.ts.map +1 -1
- package/dist/lib/relations.d.ts +1 -1
- package/dist/lib/relations.d.ts.map +1 -1
- package/dist/lib/relationsDynamic.d.ts +1 -1
- package/dist/lib/relationsDynamic.d.ts.map +1 -1
- package/dist/lib/relationsMutate.d.ts +1 -1
- package/dist/lib/relationsMutate.d.ts.map +1 -1
- package/dist/lib/relationsStatic.d.ts +1 -1
- package/dist/lib/relationsStatic.d.ts.map +1 -1
- package/dist/service/database.d.ts +1 -1
- package/dist/service/database.d.ts.map +1 -1
- package/dist/service/databaseDialectBase_.d.ts.map +1 -1
- package/dist/service/db_.d.ts +1 -1
- package/dist/service/db_.d.ts.map +1 -1
- package/dist/types/entity.d.ts +2 -2
- package/dist/types/entity.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/bean/bean.database.ts +1 -1
- package/src/bean/schedule.softDeletionPrune.ts +1 -1
- package/src/lib/bean.model/bean.model_meta.ts +1 -1
- package/src/lib/dto/dtoAggregate.ts +1 -1
- package/src/lib/dto/dtoCreate.ts +1 -1
- package/src/lib/dto/dtoGroup.ts +1 -1
- package/src/lib/dto/dtoSelectAndCount.ts +1 -1
- package/src/lib/dto/dtoUpdate.ts +1 -1
- package/src/lib/modelCacheBase.ts +1 -1
- package/src/lib/relations.ts +1 -1
- package/src/lib/relationsDynamic.ts +1 -1
- package/src/lib/relationsMutate.ts +1 -1
- package/src/lib/relationsStatic.ts +1 -1
- package/src/service/database.ts +1 -1
- package/src/service/databaseDialectBase_.ts +10 -3
- package/src/service/db_.ts +1 -1
- package/src/types/entity.ts +2 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BeanBase } from 'vona';
|
|
2
|
+
import type { BeanModel } from '../../bean/bean.model.ts';
|
|
2
3
|
import type { ServiceDb } from '../../service/db_.ts';
|
|
3
4
|
import type { IDatabaseClientRecord, IDecoratorModelOptions, IModelClassRecord, IModelMethodOptionsGeneral, IModelUpdateOptionsGeneral, ITableRecord, TypeEntityMeta, TypeModelClassLike, TypeModelOptionsTable, TypeModelRelationOptionsMetaClient } from '../../types/index.ts';
|
|
4
|
-
import type { BeanModel } from '../../bean/bean.model.ts';
|
|
5
5
|
import { SymbolKeyEntity, SymbolKeyEntityMeta, SymbolKeyModelOptions } from '../../types/index.ts';
|
|
6
6
|
declare const SymbolModelDb: unique symbol;
|
|
7
7
|
declare const SymbolModelTable: unique symbol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bean.model_meta.d.ts","sourceRoot":"","sources":["../../../src/lib/bean.model/bean.model_meta.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,QAAQ,EAAQ,MAAM,MAAM,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACtB,iBAAi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C,KAAK,SAAS,aAAa,GAAG,MAAM,iBAAiB,EAC5E,gBAAgB,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAC3C,MAAM,CAAC,EAAE,kCAAkC,EAC3C,KAAK,CAAC,EAAE,qBAAqB,GAC5B,aAAa;CAgBjB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Constructable } from 'vona';
|
|
2
|
-
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
3
2
|
import type { TypeDtoAggrResult } from '../../types/dto/dtoAggregate.ts';
|
|
4
3
|
import type { TypeModelSelectAggrParamsAggrs } from '../../types/modelAggr.ts';
|
|
5
4
|
import type { IModelClassRecord } from '../../types/onion/model.ts';
|
|
6
5
|
import type { TypeModelOfModelLike, TypeSymbolKeyEntity } from '../../types/relations.ts';
|
|
6
|
+
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
7
7
|
export declare function DtoAggregate<Aggrs extends TypeModelSelectAggrParamsAggrs<TypeModelOfModelLike<ModelLike>[TypeSymbolKeyEntity]>, ModelLike extends BeanModelMeta | keyof IModelClassRecord>(modelLike: ModelLike extends BeanModelMeta ? (() => Constructable<ModelLike>) | Constructable<ModelLike> : ModelLike, aggrs: Aggrs): Constructable<TypeDtoAggrResult<Aggrs>>;
|
|
8
8
|
export declare function _DtoAggregate_inner<Aggrs extends TypeModelSelectAggrParamsAggrs<TypeModelOfModelLike<ModelLike>[TypeSymbolKeyEntity]>, ModelLike extends BeanModelMeta | keyof IModelClassRecord>(classTarget: Constructable, _modelLike: ModelLike extends BeanModelMeta ? (() => Constructable<ModelLike>) | Constructable<ModelLike> : ModelLike, aggrs: Aggrs): Constructable<TypeDtoAggrResult<Aggrs>>;
|
|
9
9
|
//# sourceMappingURL=dtoAggregate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtoAggregate.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/dtoAggregate.ts"],"names":[],"mappings":"A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GACX,aAAa,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAUzC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Constructable } from 'vona';
|
|
2
|
-
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
3
2
|
import type { IDtoMutateParams, TypeDtoMutateResult } from '../../types/dto/dtoMutate.ts';
|
|
4
3
|
import type { IModelClassRecord } from '../../types/onion/model.ts';
|
|
4
|
+
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
5
5
|
export declare function DtoCreate<ModelLike extends BeanModelMeta | keyof IModelClassRecord, T extends IDtoMutateParams<ModelLike> | undefined = undefined>(modelLike: ModelLike extends BeanModelMeta ? (() => Constructable<ModelLike>) | Constructable<ModelLike> : ModelLike, params?: T): Constructable<TypeDtoMutateResult<ModelLike, T, 'create', 'id' | 'iid' | 'deleted' | 'createdAt' | 'updatedAt', true>>;
|
|
6
6
|
//# sourceMappingURL=dtoCreate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtoCreate.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/dtoCreate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"dtoCreate.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/dtoCreate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAItE,wBAAgB,SAAS,CACvB,SAAS,SAAS,aAAa,GAAG,MAAM,iBAAiB,EACzD,CAAC,SAAS,gBAAgB,CAAC,SAAS,CAAC,GAAG,SAAS,GAAG,SAAS,EAE7D,SAAS,EAAE,SAAS,SAAS,aAAa,GACtC,CAAC,MAAM,aAAa,CAAC,SAAS,CAAC,CAAC,GAAG,aAAa,CAAC,SAAS,CAAC,GAC3D,SAAS,EACb,MAAM,CAAC,EAAE,CAAC,GACT,aAAa,CACd,mBAAmB,CACjB,SAAS,EACT,CAAC,EACD,QAAQ,EACR,IAAI,GAAG,KAAK,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,EACpD,IAAI,CACL,CACF,CASA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Constructable } from 'vona';
|
|
2
|
-
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
3
2
|
import type { TypeDtoGroupResult } from '../../types/dto/dtoGroup.ts';
|
|
4
3
|
import type { TypeModelSelectAggrParamsAggrs } from '../../types/modelAggr.ts';
|
|
5
4
|
import type { TypeModelColumnsStrict } from '../../types/modelWhere.ts';
|
|
6
5
|
import type { IModelClassRecord } from '../../types/onion/model.ts';
|
|
7
6
|
import type { TypeModelOfModelLike, TypeSymbolKeyEntity } from '../../types/relations.ts';
|
|
7
|
+
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
8
8
|
export declare function DtoGroup<ModelLike extends BeanModelMeta | keyof IModelClassRecord, Groups extends TypeModelColumnsStrict<TypeModelOfModelLike<ModelLike>[TypeSymbolKeyEntity]>, Aggrs extends TypeModelSelectAggrParamsAggrs<TypeModelOfModelLike<ModelLike>[TypeSymbolKeyEntity]> | undefined = undefined, Columns extends TypeModelColumnsStrict<TypeModelOfModelLike<ModelLike>[TypeSymbolKeyEntity]> | undefined = undefined>(modelLike: ModelLike extends BeanModelMeta ? (() => Constructable<ModelLike>) | Constructable<ModelLike> : ModelLike, groups: Groups, aggrs?: Aggrs, columns?: Columns): Constructable<TypeDtoGroupResult<TypeModelOfModelLike<ModelLike>[TypeSymbolKeyEntity], Aggrs, Groups, Columns>>;
|
|
9
9
|
//# sourceMappingURL=dtoGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtoGroup.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/dtoGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAK1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"dtoGroup.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/dtoGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAK1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAKtE,wBAAgB,QAAQ,CACtB,SAAS,SAAS,aAAa,GAAG,MAAM,iBAAiB,EACzD,MAAM,SAAS,sBAAsB,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAC,EAC3F,KAAK,SACD,8BAA8B,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAC,GACpF,SAAS,GAAG,SAAS,EACzB,OAAO,SACH,sBAAsB,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAC,GAC5E,SAAS,GAAG,SAAS,EAEzB,SAAS,EAAE,SAAS,SAAS,aAAa,GACtC,CAAC,MAAM,aAAa,CAAC,SAAS,CAAC,CAAC,GAAG,aAAa,CAAC,SAAS,CAAC,GAC3D,SAAS,EACb,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,KAAK,EACb,OAAO,CAAC,EAAE,OAAO,GAChB,aAAa,CACd,kBAAkB,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CACjG,CAEA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Constructable } from 'vona';
|
|
2
|
-
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
3
2
|
import type { IDtoGetParams } from '../../types/dto/dtoGet.ts';
|
|
4
3
|
import type { TypeDtoSelectAndCountResult } from '../../types/dto/dtoSelectAndCount.ts';
|
|
5
4
|
import type { IModelClassRecord } from '../../types/onion/model.ts';
|
|
5
|
+
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
6
6
|
export declare function DtoSelectAndCount<ModelLike extends BeanModelMeta | keyof IModelClassRecord, T extends IDtoGetParams<ModelLike> | undefined = undefined>(modelLike: ModelLike extends BeanModelMeta ? (() => Constructable<ModelLike>) | Constructable<ModelLike> : ModelLike, params?: T): Constructable<TypeDtoSelectAndCountResult<ModelLike, T>>;
|
|
7
7
|
//# sourceMappingURL=dtoSelectAndCount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtoSelectAndCount.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/dtoSelectAndCount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dtoSelectAndCount.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/dtoSelectAndCount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAKtE,wBAAgB,iBAAiB,CAC/B,SAAS,SAAS,aAAa,GAAG,MAAM,iBAAiB,EACzD,CAAC,SAAS,aAAa,CAAC,SAAS,CAAC,GAAG,SAAS,GAAG,SAAS,EAE1D,SAAS,EAAE,SAAS,SAAS,aAAa,GACtC,CAAC,MAAM,aAAa,CAAC,SAAS,CAAC,CAAC,GAAG,aAAa,CAAC,SAAS,CAAC,GAC3D,SAAS,EACb,MAAM,CAAC,EAAE,CAAC,GACT,aAAa,CAAC,2BAA2B,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAG1D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Constructable } from 'vona';
|
|
2
|
-
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
3
2
|
import type { IDtoMutateParams, TypeDtoMutateResult } from '../../types/dto/dtoMutate.ts';
|
|
4
3
|
import type { IModelClassRecord } from '../../types/onion/model.ts';
|
|
4
|
+
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
5
5
|
export declare function DtoUpdate<ModelLike extends BeanModelMeta | keyof IModelClassRecord, T extends IDtoMutateParams<ModelLike> | undefined = undefined>(modelLike: ModelLike extends BeanModelMeta ? (() => Constructable<ModelLike>) | Constructable<ModelLike> : ModelLike, params?: T): Constructable<TypeDtoMutateResult<ModelLike, T, 'update', 'id' | 'iid' | 'deleted' | 'createdAt' | 'updatedAt', true>>;
|
|
6
6
|
//# sourceMappingURL=dtoUpdate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtoUpdate.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/dtoUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"dtoUpdate.d.ts","sourceRoot":"","sources":["../../../src/lib/dto/dtoUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAItE,wBAAgB,SAAS,CACvB,SAAS,SAAS,aAAa,GAAG,MAAM,iBAAiB,EACzD,CAAC,SAAS,gBAAgB,CAAC,SAAS,CAAC,GAAG,SAAS,GAAG,SAAS,EAE7D,SAAS,EAAE,SAAS,SAAS,aAAa,GACtC,CAAC,MAAM,aAAa,CAAC,SAAS,CAAC,CAAC,GAAG,aAAa,CAAC,SAAS,CAAC,GAC3D,SAAS,EACb,MAAM,CAAC,EAAE,CAAC,GACT,aAAa,CACd,mBAAmB,CACjB,SAAS,EACT,CAAC,EACD,QAAQ,EACR,IAAI,GAAG,KAAK,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,EACpD,IAAI,CACL,CACF,CASA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ServiceSummerCacheBase, IDecoratorSummerCacheOptions } from 'vona-module-a-summer';
|
|
2
2
|
import { BeanBase } from 'vona';
|
|
3
|
-
import type { BeanModelCache } from './bean.model/bean.model_cache.ts';
|
|
4
3
|
import type { TypeModelCacheType } from '../types/model.ts';
|
|
5
4
|
import type { ITableRecord } from '../types/onion/table.ts';
|
|
5
|
+
import type { BeanModelCache } from './bean.model/bean.model_cache.ts';
|
|
6
6
|
declare const SymbolCacheOptions: unique symbol;
|
|
7
7
|
export declare class ModelCacheBase extends BeanBase {
|
|
8
8
|
private [SymbolCacheOptions];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelCacheBase.d.ts","sourceRoot":"","sources":["../../src/lib/modelCacheBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEjG,OAAO,EAAE,QAAQ,EAAc,MAAM,MAAM,CAAC;AAE5C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"modelCacheBase.d.ts","sourceRoot":"","sources":["../../src/lib/modelCacheBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEjG,OAAO,EAAE,QAAQ,EAAc,MAAM,MAAM,CAAC;AAE5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIvE,QAAA,MAAM,kBAAkB,eAA+B,CAAC;AAGxD,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,OAAO,CAAC,CAAC,kBAAkB,CAAC,CAAuC;IACnE,SAAS,CAAC,MAAM,EAAE,cAAc,CAAC;IACjC,OAAO,CAAC,UAAU,CAAqB;IAEvC,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB;IAKvE,OAAO,KAAK,QAAQ,GAEnB;IAEM,WAAW,CAAC,KAAK,EAAE,MAAM,YAAY,GAAG,sBAAsB;IAe9D,OAAO,CAAC,KAAK,EAAE,MAAM,YAAY;IAOxC,IAAW,OAAO,yCAKjB;IAED,IAAW,OAAO,QAKjB;IAED,OAAO,CAAC,qBAAqB;IAQ7B,OAAO,CAAC,qBAAqB;CAgC9B"}
|
package/dist/lib/relations.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
2
1
|
import type { IModelClassRecord } from '../types/onion/model.ts';
|
|
3
2
|
import type { TypeModelClassLike, TypeModelOfModelLike, TypeModelsClassLikeGeneral, TypeSymbolKeyEntity } from '../types/relations.ts';
|
|
3
|
+
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
4
4
|
import type { IModelRelationOptionsManyStatic, IModelRelationOptionsOneStatic } from './relationsStatic.ts';
|
|
5
5
|
declare function hasOne<MODEL extends BeanModelMeta | keyof IModelClassRecord, OPTIONS extends IModelRelationOptionsOneStatic<TypeModelOfModelLike<MODEL>>>(classModel: TypeModelClassLike<MODEL>, key: keyof TypeModelOfModelLike<MODEL>[TypeSymbolKeyEntity], options?: OPTIONS): any;
|
|
6
6
|
declare function belongsTo<MODELSelf extends BeanModelMeta | keyof IModelClassRecord, MODEL extends BeanModelMeta | keyof IModelClassRecord, OPTIONS extends IModelRelationOptionsOneStatic<TypeModelOfModelLike<MODEL>>>(_classModelSelf: TypeModelClassLike<MODELSelf>, classModel: TypeModelClassLike<MODEL>, key: keyof TypeModelOfModelLike<MODELSelf>[TypeSymbolKeyEntity], options?: OPTIONS): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../../src/lib/relations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../../src/lib/relations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CA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AAED,iBAAS,aAAa,CACpB,WAAW,SAAS,aAAa,GAAG,MAAM,iBAAiB,EAC3D,KAAK,SAAS,aAAa,GAAG,MAAM,iBAAiB,EACrD,OAAO,SAAS,+BAA+B,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAC/F,UAAU,SAAS,0BAA0B,GAAG,SAAS,GAAG,SAAS,EACrE,KAAK,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAE7C,gBAAgB,EAAE,kBAAkB,CAAC,WAAW,CAAC,EACjD,UAAU,EAAE,kBAAkB,CAAC,KAAK,CAAC,EACrC,OAAO,EAAE,MAAM,oBAAoB,CAAC,WAAW,CAAC,CAAC,mBAAmB,CAAC,EACrE,KAAK,EAAE,MAAM,oBAAoB,CAAC,WAAW,CAAC,CAAC,mBAAmB,CAAC,EACnE,OAAO,CAAC,EAAE,OAAO,EACjB,WAAW,CAAC,EAAE,UAAU,EACxB,MAAM,CAAC,EAAE,KAAK,GACb,GAAG,CAUL;AAED,eAAO,MAAM,SAAS;;;;;CAKrB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
2
1
|
import type { IModelClassRecord } from '../types/onion/model.ts';
|
|
3
2
|
import type { TypeModelClassLike, TypeModelOfModelLike, TypeModelsClassLikeGeneral, TypeSymbolKeyEntity } from '../types/relations.ts';
|
|
4
3
|
import type { IModelRelationBelongsToDynamic, IModelRelationBelongsToManyDynamic, IModelRelationHasManyDynamic, IModelRelationHasOneDynamic, IModelRelationOptionsManyDynamic, IModelRelationOptionsOneDynamic } from '../types/relationsDefDynamic.ts';
|
|
4
|
+
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
5
5
|
declare function hasOne<MODEL extends BeanModelMeta | keyof IModelClassRecord, KEY extends keyof TypeModelOfModelLike<MODEL>[TypeSymbolKeyEntity], OPTIONS extends IModelRelationOptionsOneDynamic<TypeModelOfModelLike<MODEL>> | undefined = undefined>(classModel: TypeModelClassLike<MODEL>, key: KEY, options?: OPTIONS): IModelRelationHasOneDynamic<MODEL, KEY, OPTIONS>;
|
|
6
6
|
declare function belongsTo<MODELSelf extends BeanModelMeta | keyof IModelClassRecord, MODEL extends BeanModelMeta | keyof IModelClassRecord, OPTIONS extends IModelRelationOptionsOneDynamic<TypeModelOfModelLike<MODEL>> | undefined = undefined>(_classModelSelf: TypeModelClassLike<MODELSelf>, classModel: TypeModelClassLike<MODEL>, key: keyof TypeModelOfModelLike<MODELSelf>[TypeSymbolKeyEntity], options?: OPTIONS): IModelRelationBelongsToDynamic<MODELSelf, MODEL, OPTIONS>;
|
|
7
7
|
declare function hasMany<MODEL extends BeanModelMeta | keyof IModelClassRecord, KEY extends keyof TypeModelOfModelLike<MODEL>[TypeSymbolKeyEntity], OPTIONS extends IModelRelationOptionsManyDynamic<TypeModelOfModelLike<MODEL>, ModelJoins, Group> | undefined = undefined, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined, Group extends boolean | undefined = undefined>(classModel: TypeModelClassLike<MODEL>, key: KEY, options?: OPTIONS, _modelJoins?: ModelJoins, _group?: Group): IModelRelationHasManyDynamic<MODEL, KEY, OPTIONS, ModelJoins, Group>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relationsDynamic.d.ts","sourceRoot":"","sources":["../../src/lib/relationsDynamic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"relationsDynamic.d.ts","sourceRoot":"","sources":["../../src/lib/relationsDynamic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,8BAA8B,EAC9B,kCAAkC,EAClC,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|
import type { TypeModelClassLike, TypeModelOfModelLike, TypeSymbolKeyEntity } from '../types/relations.ts';
|
|
4
3
|
import type { IModelRelationBelongsToManyDynamic, IModelRelationHasManyDynamic, IModelRelationHasOneDynamic } from '../types/relationsDefDynamic.ts';
|
|
5
4
|
import type { IModelRelationOptionsBelongsToManyMutate, IModelRelationOptionsManyMutate, IModelRelationOptionsOneMutate } from '../types/relationsDefMutate.ts';
|
|
5
|
+
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
6
6
|
declare function hasOne<MODEL extends BeanModelMeta | keyof IModelClassRecord, KEY extends keyof TypeModelOfModelLike<MODEL>[TypeSymbolKeyEntity], OPTIONS extends IModelRelationOptionsOneMutate<TypeModelOfModelLike<MODEL>>>(classModel: TypeModelClassLike<MODEL>, key: KEY, options?: OPTIONS): IModelRelationHasOneDynamic<MODEL, KEY, OPTIONS>;
|
|
7
7
|
declare function hasMany<MODEL extends BeanModelMeta | keyof IModelClassRecord, KEY extends keyof TypeModelOfModelLike<MODEL>[TypeSymbolKeyEntity], OPTIONS extends IModelRelationOptionsManyMutate<TypeModelOfModelLike<MODEL>>>(classModel: TypeModelClassLike<MODEL>, key: KEY, options?: OPTIONS): IModelRelationHasManyDynamic<MODEL, KEY, OPTIONS>;
|
|
8
8
|
declare function belongsToMany<MODELMiddle extends BeanModelMeta | keyof IModelClassRecord, MODEL extends BeanModelMeta | keyof IModelClassRecord, OPTIONS extends IModelRelationOptionsBelongsToManyMutate<TypeModelOfModelLike<MODEL>>>(classModelMiddle: TypeModelClassLike<MODELMiddle>, classModel: TypeModelClassLike<MODEL>, keyFrom: keyof TypeModelOfModelLike<MODELMiddle>[TypeSymbolKeyEntity], keyTo: keyof TypeModelOfModelLike<MODELMiddle>[TypeSymbolKeyEntity], options?: OPTIONS): IModelRelationBelongsToManyDynamic<MODELMiddle, MODEL, OPTIONS>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relationsMutate.d.ts","sourceRoot":"","sources":["../../src/lib/relationsMutate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"relationsMutate.d.ts","sourceRoot":"","sources":["../../src/lib/relationsMutate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,kCAAkC,EAClC,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACV,wCAAwC,EACxC,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,iBAAS,MAAM,CACb,KAAK,SAAS,aAAa,GAAG,MAAM,iBAAiB,EACrD,GAAG,SAAS,MAAM,oBAAoB,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC,EAClE,OAAO,SAAS,8BAA8B,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,EAE3E,UAAU,EAAE,kBAAkB,CAAC,KAAK,CAAC,EACrC,GAAG,EAAE,GAAG,EACR,OAAO,CAAC,EAAE,OAAO,GAChB,2BAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,CAElD;AAeD,iBAAS,OAAO,CACd,KAAK,SAAS,aAAa,GAAG,MAAM,iBAAiB,EACrD,GAAG,SAAS,MAAM,oBAAoB,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC,EAElE,OAAO,SAAS,+BAA+B,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,EAE5E,UAAU,EAAE,kBAAkB,CAAC,KAAK,CAAC,EACrC,GAAG,EAAE,GAAG,EACR,OAAO,CAAC,EAAE,OAAO,GAChB,4BAA4B,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,CAEnD;AAED,iBAAS,aAAa,CACpB,WAAW,SAAS,aAAa,GAAG,MAAM,iBAAiB,EAC3D,KAAK,SAAS,aAAa,GAAG,MAAM,iBAAiB,EACrD,OAAO,SAAS,wCAAwC,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,EAErF,gBAAgB,EAAE,kBAAkB,CAAC,WAAW,CAAC,EACjD,UAAU,EAAE,kBAAkB,CAAC,KAAK,CAAC,EACrC,OAAO,EAAE,MAAM,oBAAoB,CAAC,WAAW,CAAC,CAAC,mBAAmB,CAAC,EACrE,KAAK,EAAE,MAAM,oBAAoB,CAAC,WAAW,CAAC,CAAC,mBAAmB,CAAC,EACnE,OAAO,CAAC,EAAE,OAAO,GAChB,kCAAkC,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CASjE;AAED,eAAO,MAAM,eAAe;;;;CAK3B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
2
1
|
import type { TypeModelsClassLikeGeneral } from '../types/relations.ts';
|
|
3
2
|
import type { IModelRelationOptionsManyDynamic, IModelRelationOptionsOneDynamic } from '../types/relationsDefDynamic.ts';
|
|
3
|
+
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
4
4
|
export interface IModelRelationOptionsManyStatic<MODEL extends BeanModelMeta, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined, Group extends boolean | undefined = undefined> extends Omit<IModelRelationOptionsManyDynamic<MODEL, ModelJoins, Group>, 'include' | 'with'> {
|
|
5
5
|
autoload?: boolean;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relationsStatic.d.ts","sourceRoot":"","sources":["../../src/lib/relationsStatic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"relationsStatic.d.ts","sourceRoot":"","sources":["../../src/lib/relationsStatic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,KAAK,EACV,gCAAgC,EAChC,+BAA+B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,+BAA+B,CAC9C,KAAK,SAAS,aAAa,EAC3B,UAAU,SAAS,0BAA0B,GAAG,SAAS,GAAG,SAAS,EACrE,KAAK,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,CAC7C,SAAQ,IAAI,CAAC,gCAAgC,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC5F,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,8BAA8B,CAAC,KAAK,SAAS,aAAa,CAAE,SAAQ,IAAI,CACvF,+BAA+B,CAAC,KAAK,CAAC,EACtC,SAAS,GAAG,MAAM,CACnB;IACC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BeanBase } from 'vona';
|
|
2
|
-
import type { ServiceDatabaseDialectBase } from './databaseDialectBase_.ts';
|
|
3
2
|
import type { ConfigDatabaseClient } from '../types/config.ts';
|
|
4
3
|
import type { IDatabaseClientDialectRecord, IDatabaseClientRecord, IDbInfo } from '../types/database.ts';
|
|
4
|
+
import type { ServiceDatabaseDialectBase } from './databaseDialectBase_.ts';
|
|
5
5
|
export declare class ServiceDatabase extends BeanBase {
|
|
6
6
|
get configDatabase(): import("../types/config.ts").ConfigDatabase;
|
|
7
7
|
getClientConfig(clientName: keyof IDatabaseClientRecord, clientConfig?: ConfigDatabaseClient, original?: boolean): ConfigDatabaseClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../src/service/database.ts"],"names":[],"mappings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K,CAAC,OAAO,KAAA;IAIP,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAIvF,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,GAAG,YAAY;cAMnC,eAAe,CAC7B,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,KAAK,EAAE,GAAG,EAAE,EACZ,EAAE,EAAE,iCAAiC,GACpC,OAAO,CAAC,GAAG,EAAE,CAAC;cAmBD,aAAa,CAC3B,OAAO,EAAE,IAAI,CAAC,YAAY,EAC1B,KAAK,EAAE,GAAG,EAAE,GACX,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;cAoBhC,UAAU,CACxB,OAAO,EAAE,IAAI,CAAC,YAAY,EAC1B,KAAK,EAAE,GAAG,EAAE,GACX,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAahD,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,KAAA;IAsBhD,SAAS,CAAC,WAAW,CAAC,KAAK,KAAA;IAK3B,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE;CAG/D"}
|
package/dist/service/db_.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { FunctionAny } from 'vona';
|
|
2
2
|
import { BeanBase } from 'vona';
|
|
3
|
-
import type { ServiceDatabaseDialectBase } from './databaseDialectBase_.ts';
|
|
4
3
|
import type { IDatabaseClientDialectRecord, IDbInfo } from '../types/database.ts';
|
|
5
4
|
import type { ITransactionConsistencyCommitOptions } from '../types/transaction.ts';
|
|
6
5
|
import type { ServiceDatabaseClient } from './databaseClient_.ts';
|
|
6
|
+
import type { ServiceDatabaseDialectBase } from './databaseDialectBase_.ts';
|
|
7
7
|
import { ServiceColumns } from './columns_.ts';
|
|
8
8
|
import { ServiceTransaction } from './transaction_.ts';
|
|
9
9
|
export declare class ServiceDb extends BeanBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db_.d.ts","sourceRoot":"","sources":["../../src/service/db_.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGhC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"db_.d.ts","sourceRoot":"","sources":["../../src/service/db_.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGhC,OAAO,KAAK,EAAE,4BAA4B,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,qBACa,SAAU,SAAQ,QAAQ;IACrC,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,YAAY,CAAqB;IAEzC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,qBAAqB;IAIhD,IAAI,IAAI,IAAI,OAAO,CAElB;IAED,IAAI,KAAK,WAER;IAED,IAAI,UAAU,+DAEb;IAED,IAAI,MAAM,0BAET;IAED,IAAI,OAAO,mBAKV;IAED,IAAI,WAAW,uBAKd;IAED,IAAI,aAAa,YAEhB;IAED,IAAI,UAAU,oCAEb;IAED,IAAI,WAAW,IAAI,MAAM,4BAA4B,CAEpD;IAED,IAAI,OAAO,IAAI,0BAA0B,CAExC;IAEK,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,oCAAoC;IAI5E,UAAU,CAAC,EAAE,EAAE,WAAW;CAG3B"}
|
package/dist/types/entity.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ export type TypeEntityMeta<T, N = string> = Required<{
|
|
|
14
14
|
};
|
|
15
15
|
export declare const SymbolKeyFieldsMore: unique symbol;
|
|
16
16
|
export type TypeSymbolKeyFieldsMore = typeof SymbolKeyFieldsMore;
|
|
17
|
-
export type
|
|
18
|
-
export type
|
|
17
|
+
export type TypeEntityMetaFields<T> = Omit<T, '$table' | '$comment' | '$default'>;
|
|
18
|
+
export type TypeEntityMetaFieldKeys<T> = PickString<keyof TypeEntityMetaFields<T>>;
|
|
19
19
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/types/entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,IAAI,QAAQ,CAAC;KAClD,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG;CACtB,CAAC,GAAG;IACH,MAAM,EAAE,CAAC,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC;SAAG,GAAG,IAAI,MAAM,CAAC,GAAG,MAAM;KAAE,CAAC,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,QAAQ,EAAE,QAAQ,CAAC;SAAG,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG;KAAE,CAAC,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAwB,CAAC;AACzD,MAAM,MAAM,uBAAuB,GAAG,OAAO,mBAAmB,CAAC;AAEjE,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/types/entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,IAAI,QAAQ,CAAC;KAClD,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG;CACtB,CAAC,GAAG;IACH,MAAM,EAAE,CAAC,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC;SAAG,GAAG,IAAI,MAAM,CAAC,GAAG,MAAM;KAAE,CAAC,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,QAAQ,EAAE,QAAQ,CAAC;SAAG,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG;KAAE,CAAC,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAwB,CAAC;AACzD,MAAM,MAAM,uBAAuB,GAAG,OAAO,mBAAmB,CAAC;AAEjE,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;AAClF,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,UAAU,CAAC,MAAM,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@ import type { FunctionAsync } from 'vona';
|
|
|
3
3
|
import { BeanBase, beanFullNameFromOnionName } from 'vona';
|
|
4
4
|
import { Bean } from 'vona-module-a-bean';
|
|
5
5
|
|
|
6
|
+
import type { ServiceDatabaseDialectBase } from '../service/databaseDialectBase_.ts';
|
|
6
7
|
import type { ConfigDatabaseClient } from '../types/config.ts';
|
|
7
8
|
import type {
|
|
8
9
|
IDatabaseClientDialectRecord,
|
|
9
10
|
IDatabaseClientRecord,
|
|
10
11
|
IDbInfo,
|
|
11
12
|
} from '../types/database.ts';
|
|
12
|
-
import type { ServiceDatabaseDialectBase } from '../service/databaseDialectBase_.ts';
|
|
13
13
|
|
|
14
14
|
import { ServiceDatabaseAsyncLocalStorage } from '../service/databaseAsyncLocalStorage_.ts';
|
|
15
15
|
import { ServiceDatabaseClient } from '../service/databaseClient_.ts';
|
|
@@ -4,8 +4,8 @@ import type { IScheduleExecute } from 'vona-module-a-schedule';
|
|
|
4
4
|
import { BeanBase } from 'vona';
|
|
5
5
|
import { Schedule } from 'vona-module-a-schedule';
|
|
6
6
|
|
|
7
|
-
import type { IModelRecord, ISoftDeletionPrune } from '../types/onion/model.ts';
|
|
8
7
|
import type { BeanModelCache } from '../lib/bean.model/bean.model_cache.ts';
|
|
8
|
+
import type { IModelRecord, ISoftDeletionPrune } from '../types/onion/model.ts';
|
|
9
9
|
|
|
10
10
|
@Schedule({ repeat: { every: 24 * 3600 * 1000 } })
|
|
11
11
|
export class ScheduleSoftDeletionPrune extends BeanBase implements IScheduleExecute {
|
|
@@ -2,6 +2,7 @@ import { isNil } from '@cabloy/utils';
|
|
|
2
2
|
import { appResource, BeanBase, cast } from 'vona';
|
|
3
3
|
import { $tableNameFromEntity } from 'vona-module-a-ormutils';
|
|
4
4
|
|
|
5
|
+
import type { BeanModel } from '../../bean/bean.model.ts';
|
|
5
6
|
import type { ServiceDb } from '../../service/db_.ts';
|
|
6
7
|
import type {
|
|
7
8
|
IDatabaseClientRecord,
|
|
@@ -15,7 +16,6 @@ import type {
|
|
|
15
16
|
TypeModelOptionsTable,
|
|
16
17
|
TypeModelRelationOptionsMetaClient,
|
|
17
18
|
} from '../../types/index.ts';
|
|
18
|
-
import type { BeanModel } from '../../bean/bean.model.ts';
|
|
19
19
|
|
|
20
20
|
import { getTableOrTableAlias, prepareClassModel } from '../../common/utils.ts';
|
|
21
21
|
import { SymbolKeyEntity, SymbolKeyEntityMeta, SymbolKeyModelOptions } from '../../types/index.ts';
|
|
@@ -4,11 +4,11 @@ import { ensureArray } from '@cabloy/utils';
|
|
|
4
4
|
import { Api, v } from 'vona-module-a-openapiutils';
|
|
5
5
|
import z from 'zod';
|
|
6
6
|
|
|
7
|
-
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
8
7
|
import type { TypeDtoAggrResult } from '../../types/dto/dtoAggregate.ts';
|
|
9
8
|
import type { TypeModelSelectAggrParamsAggrs } from '../../types/modelAggr.ts';
|
|
10
9
|
import type { IModelClassRecord } from '../../types/onion/model.ts';
|
|
11
10
|
import type { TypeModelOfModelLike, TypeSymbolKeyEntity } from '../../types/relations.ts';
|
|
11
|
+
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
12
12
|
|
|
13
13
|
export function DtoAggregate<
|
|
14
14
|
Aggrs extends TypeModelSelectAggrParamsAggrs<
|
package/src/lib/dto/dtoCreate.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Constructable } from 'vona';
|
|
2
2
|
|
|
3
|
-
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
4
3
|
import type { IDtoMutateParams, TypeDtoMutateResult } from '../../types/dto/dtoMutate.ts';
|
|
5
4
|
import type { IModelClassRecord } from '../../types/onion/model.ts';
|
|
5
|
+
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
6
6
|
|
|
7
7
|
import { _DtoMutate_raw } from './dtoMutate.ts';
|
|
8
8
|
|
package/src/lib/dto/dtoGroup.ts
CHANGED
|
@@ -3,12 +3,12 @@ import type { Constructable } from 'vona';
|
|
|
3
3
|
import { ensureArray } from '@cabloy/utils';
|
|
4
4
|
import { PickClassInner } from 'vona';
|
|
5
5
|
|
|
6
|
-
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
7
6
|
import type { TypeDtoGroupResult } from '../../types/dto/dtoGroup.ts';
|
|
8
7
|
import type { TypeModelSelectAggrParamsAggrs } from '../../types/modelAggr.ts';
|
|
9
8
|
import type { TypeModelColumnsStrict } from '../../types/modelWhere.ts';
|
|
10
9
|
import type { IModelClassRecord } from '../../types/onion/model.ts';
|
|
11
10
|
import type { TypeModelOfModelLike, TypeSymbolKeyEntity } from '../../types/relations.ts';
|
|
11
|
+
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
12
12
|
|
|
13
13
|
import { getClassEntityFromClassModel, prepareClassModel } from '../../common/utils.ts';
|
|
14
14
|
import { _DtoAggregate_inner } from './dtoAggregate.ts';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Constructable } from 'vona';
|
|
2
2
|
|
|
3
|
-
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
4
3
|
import type { IDtoGetParams } from '../../types/dto/dtoGet.ts';
|
|
5
4
|
import type { TypeDtoSelectAndCountResult } from '../../types/dto/dtoSelectAndCount.ts';
|
|
6
5
|
import type { IModelClassRecord } from '../../types/onion/model.ts';
|
|
6
|
+
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
7
7
|
|
|
8
8
|
import { DtoGet } from './dtoGet.ts';
|
|
9
9
|
import { DtoListAndCount } from './dtoListAndCount.ts';
|
package/src/lib/dto/dtoUpdate.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Constructable } from 'vona';
|
|
2
2
|
|
|
3
|
-
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
4
3
|
import type { IDtoMutateParams, TypeDtoMutateResult } from '../../types/dto/dtoMutate.ts';
|
|
5
4
|
import type { IModelClassRecord } from '../../types/onion/model.ts';
|
|
5
|
+
import type { BeanModelMeta } from '../bean.model/bean.model_meta.ts';
|
|
6
6
|
|
|
7
7
|
import { _DtoMutate_raw } from './dtoMutate.ts';
|
|
8
8
|
|
|
@@ -2,9 +2,9 @@ import type { ServiceSummerCacheBase, IDecoratorSummerCacheOptions } from 'vona-
|
|
|
2
2
|
|
|
3
3
|
import { BeanBase, deepExtend } from 'vona';
|
|
4
4
|
|
|
5
|
-
import type { BeanModelCache } from './bean.model/bean.model_cache.ts';
|
|
6
5
|
import type { TypeModelCacheType } from '../types/model.ts';
|
|
7
6
|
import type { ITableRecord } from '../types/onion/table.ts';
|
|
7
|
+
import type { BeanModelCache } from './bean.model/bean.model_cache.ts';
|
|
8
8
|
|
|
9
9
|
import { getCacheModelCacheInstances } from './const.ts';
|
|
10
10
|
|
package/src/lib/relations.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
2
1
|
import type { IModelClassRecord } from '../types/onion/model.ts';
|
|
3
2
|
import type {
|
|
4
3
|
TypeModelClassLike,
|
|
@@ -6,6 +5,7 @@ import type {
|
|
|
6
5
|
TypeModelsClassLikeGeneral,
|
|
7
6
|
TypeSymbolKeyEntity,
|
|
8
7
|
} from '../types/relations.ts';
|
|
8
|
+
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
9
9
|
import type {
|
|
10
10
|
IModelRelationOptionsManyStatic,
|
|
11
11
|
IModelRelationOptionsOneStatic,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
2
1
|
import type { IModelClassRecord } from '../types/onion/model.ts';
|
|
3
2
|
import type {
|
|
4
3
|
TypeModelClassLike,
|
|
@@ -14,6 +13,7 @@ import type {
|
|
|
14
13
|
IModelRelationOptionsManyDynamic,
|
|
15
14
|
IModelRelationOptionsOneDynamic,
|
|
16
15
|
} from '../types/relationsDefDynamic.ts';
|
|
16
|
+
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
17
17
|
|
|
18
18
|
function hasOne<
|
|
19
19
|
MODEL extends BeanModelMeta | keyof IModelClassRecord,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
2
1
|
import type { IModelClassRecord } from '../types/onion/model.ts';
|
|
3
2
|
import type {
|
|
4
3
|
TypeModelClassLike,
|
|
@@ -15,6 +14,7 @@ import type {
|
|
|
15
14
|
IModelRelationOptionsManyMutate,
|
|
16
15
|
IModelRelationOptionsOneMutate,
|
|
17
16
|
} from '../types/relationsDefMutate.ts';
|
|
17
|
+
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
18
18
|
|
|
19
19
|
function hasOne<
|
|
20
20
|
MODEL extends BeanModelMeta | keyof IModelClassRecord,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
2
1
|
import type { TypeModelsClassLikeGeneral } from '../types/relations.ts';
|
|
3
2
|
import type {
|
|
4
3
|
IModelRelationOptionsManyDynamic,
|
|
5
4
|
IModelRelationOptionsOneDynamic,
|
|
6
5
|
} from '../types/relationsDefDynamic.ts';
|
|
6
|
+
import type { BeanModelMeta } from './bean.model/bean.model_meta.ts';
|
|
7
7
|
|
|
8
8
|
export interface IModelRelationOptionsManyStatic<
|
|
9
9
|
MODEL extends BeanModelMeta,
|
package/src/service/database.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { isNil } from '@cabloy/utils';
|
|
|
2
2
|
import { appResource, BeanBase, deepExtend } from 'vona';
|
|
3
3
|
import { Service } from 'vona-module-a-bean';
|
|
4
4
|
|
|
5
|
-
import type { ServiceDatabaseDialectBase } from './databaseDialectBase_.ts';
|
|
6
5
|
import type { ConfigDatabaseClient } from '../types/config.ts';
|
|
7
6
|
import type {
|
|
8
7
|
IDatabaseClientDialectRecord,
|
|
9
8
|
IDatabaseClientRecord,
|
|
10
9
|
IDbInfo,
|
|
11
10
|
} from '../types/database.ts';
|
|
11
|
+
import type { ServiceDatabaseDialectBase } from './databaseDialectBase_.ts';
|
|
12
12
|
|
|
13
13
|
import { ServiceDatabaseClient } from './databaseClient_.ts';
|
|
14
14
|
|
|
@@ -159,11 +159,18 @@ export class ServiceDatabaseDialectBase extends BeanBase {
|
|
|
159
159
|
if (isNil(value)) return undefined;
|
|
160
160
|
if (BOOLEAN_COLUMN_TYPES.includes(type)) return safeBoolean(value);
|
|
161
161
|
if (NUMBER_COLUMN_TYPES.includes(type)) return this._safeNumber(value);
|
|
162
|
-
if (
|
|
162
|
+
if (
|
|
163
|
+
this._columnTypePrefixes(type, TIMESTAMP_COLUMN_TYPE_PREFIXES) &&
|
|
164
|
+
value === 'CURRENT_TIMESTAMP'
|
|
165
|
+
) {
|
|
163
166
|
return undefined; // new Date();
|
|
164
167
|
}
|
|
165
|
-
if (this._columnTypePrefixes(type, FLOAT_COLUMN_TYPE_PREFIXES))
|
|
166
|
-
|
|
168
|
+
if (this._columnTypePrefixes(type, FLOAT_COLUMN_TYPE_PREFIXES)) {
|
|
169
|
+
return this._safeNumber(value);
|
|
170
|
+
}
|
|
171
|
+
if (this._columnTypePrefixes(type, INTEGER_COLUMN_TYPE_PREFIXES)) {
|
|
172
|
+
return this._safeNumber(value);
|
|
173
|
+
}
|
|
167
174
|
// pg: NULL::character varying
|
|
168
175
|
if (value.indexOf('NULL::') === 0) return undefined;
|
|
169
176
|
return value;
|
package/src/service/db_.ts
CHANGED
|
@@ -3,10 +3,10 @@ import type { FunctionAny } from 'vona';
|
|
|
3
3
|
import { BeanBase } from 'vona';
|
|
4
4
|
import { Service } from 'vona-module-a-bean';
|
|
5
5
|
|
|
6
|
-
import type { ServiceDatabaseDialectBase } from './databaseDialectBase_.ts';
|
|
7
6
|
import type { IDatabaseClientDialectRecord, IDbInfo } from '../types/database.ts';
|
|
8
7
|
import type { ITransactionConsistencyCommitOptions } from '../types/transaction.ts';
|
|
9
8
|
import type { ServiceDatabaseClient } from './databaseClient_.ts';
|
|
9
|
+
import type { ServiceDatabaseDialectBase } from './databaseDialectBase_.ts';
|
|
10
10
|
|
|
11
11
|
import { ServiceColumns } from './columns_.ts';
|
|
12
12
|
import { ServiceTransaction } from './transaction_.ts';
|
package/src/types/entity.ts
CHANGED
|
@@ -11,7 +11,5 @@ export type TypeEntityMeta<T, N = string> = Required<{
|
|
|
11
11
|
export const SymbolKeyFieldsMore = Symbol('$fieldsMore');
|
|
12
12
|
export type TypeSymbolKeyFieldsMore = typeof SymbolKeyFieldsMore;
|
|
13
13
|
|
|
14
|
-
export type
|
|
15
|
-
export type
|
|
16
|
-
keyof TypeEntityStudentMetaSimple<T>
|
|
17
|
-
>;
|
|
14
|
+
export type TypeEntityMetaFields<T> = Omit<T, '$table' | '$comment' | '$default'>;
|
|
15
|
+
export type TypeEntityMetaFieldKeys<T> = PickString<keyof TypeEntityMetaFields<T>>;
|