myorm_pg 2.5.3 → 2.6.0

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.
Files changed (60) hide show
  1. package/lib/Index.d.ts +32 -32
  2. package/lib/Index.js +53 -53
  3. package/lib/core/decorators/SchemasDecorators.d.ts +44 -44
  4. package/lib/core/decorators/SchemasDecorators.js +144 -144
  5. package/lib/core/decorators/SchemasDecorators.js.map +1 -1
  6. package/lib/core/design/Type.d.ts +38 -37
  7. package/lib/core/design/Type.d.ts.map +1 -1
  8. package/lib/core/design/Type.js +142 -137
  9. package/lib/core/design/Type.js.map +1 -1
  10. package/lib/core/enums/DBTypes.d.ts +18 -18
  11. package/lib/core/enums/DBTypes.js +22 -22
  12. package/lib/core/enums/DBTypes.js.map +1 -1
  13. package/lib/core/enums/RelationType.d.ts +6 -6
  14. package/lib/core/enums/RelationType.js +10 -10
  15. package/lib/core/enums/RelationType.js.map +1 -1
  16. package/lib/core/exceptions/ConnectionFailException.d.ts +4 -4
  17. package/lib/core/exceptions/ConnectionFailException.js +12 -12
  18. package/lib/core/exceptions/ConstraintFailException.d.ts +4 -4
  19. package/lib/core/exceptions/ConstraintFailException.js +12 -12
  20. package/lib/core/exceptions/Exception.d.ts +4 -4
  21. package/lib/core/exceptions/Exception.js +9 -9
  22. package/lib/core/exceptions/InvalidOperationException.d.ts +5 -5
  23. package/lib/core/exceptions/InvalidOperationException.js +13 -13
  24. package/lib/core/exceptions/NotImplementedException.d.ts +4 -4
  25. package/lib/core/exceptions/NotImplementedException.js +12 -12
  26. package/lib/core/exceptions/QueryFailException.d.ts +5 -5
  27. package/lib/core/exceptions/QueryFailException.js +13 -13
  28. package/lib/core/exceptions/TypeNotSuportedException.d.ts +4 -4
  29. package/lib/core/exceptions/TypeNotSuportedException.js +12 -12
  30. package/lib/core/objects/DBOperationLogHandler.d.ts +15 -15
  31. package/lib/core/objects/DBOperationLogHandler.js +16 -16
  32. package/lib/core/objects/DBOperationLogHandler.js.map +1 -1
  33. package/lib/core/objects/interfaces/IDBConnection.d.ts +13 -13
  34. package/lib/core/objects/interfaces/IDBConnection.js +2 -2
  35. package/lib/core/objects/interfaces/IDBContext.d.ts +41 -41
  36. package/lib/core/objects/interfaces/IDBContext.js +2 -2
  37. package/lib/core/objects/interfaces/IDBManager.d.ts +12 -12
  38. package/lib/core/objects/interfaces/IDBManager.js +2 -2
  39. package/lib/core/objects/interfaces/IDBSet.d.ts +38 -37
  40. package/lib/core/objects/interfaces/IDBSet.d.ts.map +1 -1
  41. package/lib/core/objects/interfaces/IDBSet.js +2 -2
  42. package/lib/core/objects/interfaces/IStatement.d.ts +16 -16
  43. package/lib/core/objects/interfaces/IStatement.js +15 -15
  44. package/lib/core/objects/interfaces/IStatement.js.map +1 -1
  45. package/lib/implementations/PGDBConnection.d.ts +18 -18
  46. package/lib/implementations/PGDBConnection.js +102 -102
  47. package/lib/implementations/PGDBContext.d.ts +55 -55
  48. package/lib/implementations/PGDBContext.js +298 -298
  49. package/lib/implementations/PGDBManager.d.ts +31 -31
  50. package/lib/implementations/PGDBManager.js +242 -242
  51. package/lib/implementations/PGDBSet.d.ts +52 -51
  52. package/lib/implementations/PGDBSet.d.ts.map +1 -1
  53. package/lib/implementations/PGDBSet.js +984 -941
  54. package/lib/implementations/PGDBSet.js.map +1 -1
  55. package/lib/implementations/PGFluentField.d.ts +17 -17
  56. package/lib/implementations/PGFluentField.js +153 -153
  57. package/lib/implementations/PGSetHelper.d.ts +18 -18
  58. package/lib/implementations/PGSetHelper.js +47 -47
  59. package/lib/implementations/PGSetHelper.js.map +1 -1
  60. package/package.json +1 -1
package/lib/Index.d.ts CHANGED
@@ -1,33 +1,33 @@
1
- import { DBTypes } from "./core/enums/DBTypes";
2
- import PGDBConnection from "./implementations/PGDBConnection";
3
- import PGDBContext from "./implementations/PGDBContext";
4
- import PGDBManager from "./implementations/PGDBManager";
5
- import PGDBSet from "./implementations/PGDBSet";
6
- import { Operation } from './core/objects/interfaces/IStatement';
7
- import { LogType } from "./core/objects/DBOperationLogHandler";
8
- import DBOperationLogHandler from "./core/objects/DBOperationLogHandler";
9
- export { DBTypes };
10
- export { PGDBConnection };
11
- export { PGDBContext };
12
- export { PGDBManager };
13
- export { PGDBSet };
14
- export { Operation };
15
- export { DBOperationLogHandler };
16
- export { LogType };
17
- export declare function Column(name?: string): (target: Object, propertyName: string) => void;
18
- export declare function Table(name?: string): (target: Object) => void;
19
- export declare function DataType(dbType: DBTypes): (target: Object, propertyName: string) => void;
20
- export declare function PrimaryKey(): (target: Object, propertyName: string) => void;
21
- export declare function OneToMany<T>(typeBuilder: () => {
22
- new (...args: any[]): T;
23
- }, property?: keyof T & string): (target: Object, propertyName: string) => void;
24
- export declare function OneToOne<T>(typeBuilder: () => {
25
- new (...args: any[]): T;
26
- }, property?: keyof T & string): (target: Object, propertyName: string) => void;
27
- export declare function ManyToMany<T>(typeBuilder: () => {
28
- new (...args: any[]): T;
29
- }, property?: keyof T & string): (target: Object, propertyName: string) => void;
30
- export declare function ManyToOne<T>(typeBuilder: () => {
31
- new (...args: any[]): T;
32
- }, property?: keyof T & string): (target: Object, propertyName: string) => void;
1
+ import { DBTypes } from "./core/enums/DBTypes";
2
+ import PGDBConnection from "./implementations/PGDBConnection";
3
+ import PGDBContext from "./implementations/PGDBContext";
4
+ import PGDBManager from "./implementations/PGDBManager";
5
+ import PGDBSet from "./implementations/PGDBSet";
6
+ import { Operation } from './core/objects/interfaces/IStatement';
7
+ import { LogType } from "./core/objects/DBOperationLogHandler";
8
+ import DBOperationLogHandler from "./core/objects/DBOperationLogHandler";
9
+ export { DBTypes };
10
+ export { PGDBConnection };
11
+ export { PGDBContext };
12
+ export { PGDBManager };
13
+ export { PGDBSet };
14
+ export { Operation };
15
+ export { DBOperationLogHandler };
16
+ export { LogType };
17
+ export declare function Column(name?: string): (target: Object, propertyName: string) => void;
18
+ export declare function Table(name?: string): (target: Object) => void;
19
+ export declare function DataType(dbType: DBTypes): (target: Object, propertyName: string) => void;
20
+ export declare function PrimaryKey(): (target: Object, propertyName: string) => void;
21
+ export declare function OneToMany<T>(typeBuilder: () => {
22
+ new (...args: any[]): T;
23
+ }, property?: keyof T & string): (target: Object, propertyName: string) => void;
24
+ export declare function OneToOne<T>(typeBuilder: () => {
25
+ new (...args: any[]): T;
26
+ }, property?: keyof T & string): (target: Object, propertyName: string) => void;
27
+ export declare function ManyToMany<T>(typeBuilder: () => {
28
+ new (...args: any[]): T;
29
+ }, property?: keyof T & string): (target: Object, propertyName: string) => void;
30
+ export declare function ManyToOne<T>(typeBuilder: () => {
31
+ new (...args: any[]): T;
32
+ }, property?: keyof T & string): (target: Object, propertyName: string) => void;
33
33
  //# sourceMappingURL=Index.d.ts.map
package/lib/Index.js CHANGED
@@ -1,54 +1,54 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ManyToOne = exports.ManyToMany = exports.OneToOne = exports.OneToMany = exports.PrimaryKey = exports.DataType = exports.Table = exports.Column = exports.LogType = exports.Operation = exports.PGDBSet = exports.PGDBManager = exports.PGDBContext = exports.PGDBConnection = exports.DBTypes = void 0;
7
- const DBTypes_1 = require("./core/enums/DBTypes");
8
- Object.defineProperty(exports, "DBTypes", { enumerable: true, get: function () { return DBTypes_1.DBTypes; } });
9
- const SchemasDecorators_1 = __importDefault(require("./core/decorators/SchemasDecorators"));
10
- const PGDBConnection_1 = __importDefault(require("./implementations/PGDBConnection"));
11
- exports.PGDBConnection = PGDBConnection_1.default;
12
- const PGDBContext_1 = __importDefault(require("./implementations/PGDBContext"));
13
- exports.PGDBContext = PGDBContext_1.default;
14
- const PGDBManager_1 = __importDefault(require("./implementations/PGDBManager"));
15
- exports.PGDBManager = PGDBManager_1.default;
16
- const PGDBSet_1 = __importDefault(require("./implementations/PGDBSet"));
17
- exports.PGDBSet = PGDBSet_1.default;
18
- const IStatement_1 = require("./core/objects/interfaces/IStatement");
19
- Object.defineProperty(exports, "Operation", { enumerable: true, get: function () { return IStatement_1.Operation; } });
20
- const DBOperationLogHandler_1 = require("./core/objects/DBOperationLogHandler");
21
- Object.defineProperty(exports, "LogType", { enumerable: true, get: function () { return DBOperationLogHandler_1.LogType; } });
22
- function Column(name) {
23
- return SchemasDecorators_1.default.Column(name);
24
- }
25
- exports.Column = Column;
26
- function Table(name) {
27
- return SchemasDecorators_1.default.Table(name);
28
- }
29
- exports.Table = Table;
30
- function DataType(dbType) {
31
- return SchemasDecorators_1.default.DataType(dbType);
32
- }
33
- exports.DataType = DataType;
34
- function PrimaryKey() {
35
- return SchemasDecorators_1.default.PrimaryKey();
36
- }
37
- exports.PrimaryKey = PrimaryKey;
38
- function OneToMany(typeBuilder, property) {
39
- return SchemasDecorators_1.default.OneToMany(typeBuilder, property);
40
- }
41
- exports.OneToMany = OneToMany;
42
- function OneToOne(typeBuilder, property) {
43
- return SchemasDecorators_1.default.OneToOne(typeBuilder, property);
44
- }
45
- exports.OneToOne = OneToOne;
46
- function ManyToMany(typeBuilder, property) {
47
- return SchemasDecorators_1.default.ManyToMany(typeBuilder, property);
48
- }
49
- exports.ManyToMany = ManyToMany;
50
- function ManyToOne(typeBuilder, property) {
51
- return SchemasDecorators_1.default.ManyToOne(typeBuilder, property);
52
- }
53
- exports.ManyToOne = ManyToOne;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ManyToOne = exports.ManyToMany = exports.OneToOne = exports.OneToMany = exports.PrimaryKey = exports.DataType = exports.Table = exports.Column = exports.LogType = exports.Operation = exports.PGDBSet = exports.PGDBManager = exports.PGDBContext = exports.PGDBConnection = exports.DBTypes = void 0;
7
+ const DBTypes_1 = require("./core/enums/DBTypes");
8
+ Object.defineProperty(exports, "DBTypes", { enumerable: true, get: function () { return DBTypes_1.DBTypes; } });
9
+ const SchemasDecorators_1 = __importDefault(require("./core/decorators/SchemasDecorators"));
10
+ const PGDBConnection_1 = __importDefault(require("./implementations/PGDBConnection"));
11
+ exports.PGDBConnection = PGDBConnection_1.default;
12
+ const PGDBContext_1 = __importDefault(require("./implementations/PGDBContext"));
13
+ exports.PGDBContext = PGDBContext_1.default;
14
+ const PGDBManager_1 = __importDefault(require("./implementations/PGDBManager"));
15
+ exports.PGDBManager = PGDBManager_1.default;
16
+ const PGDBSet_1 = __importDefault(require("./implementations/PGDBSet"));
17
+ exports.PGDBSet = PGDBSet_1.default;
18
+ const IStatement_1 = require("./core/objects/interfaces/IStatement");
19
+ Object.defineProperty(exports, "Operation", { enumerable: true, get: function () { return IStatement_1.Operation; } });
20
+ const DBOperationLogHandler_1 = require("./core/objects/DBOperationLogHandler");
21
+ Object.defineProperty(exports, "LogType", { enumerable: true, get: function () { return DBOperationLogHandler_1.LogType; } });
22
+ function Column(name) {
23
+ return SchemasDecorators_1.default.Column(name);
24
+ }
25
+ exports.Column = Column;
26
+ function Table(name) {
27
+ return SchemasDecorators_1.default.Table(name);
28
+ }
29
+ exports.Table = Table;
30
+ function DataType(dbType) {
31
+ return SchemasDecorators_1.default.DataType(dbType);
32
+ }
33
+ exports.DataType = DataType;
34
+ function PrimaryKey() {
35
+ return SchemasDecorators_1.default.PrimaryKey();
36
+ }
37
+ exports.PrimaryKey = PrimaryKey;
38
+ function OneToMany(typeBuilder, property) {
39
+ return SchemasDecorators_1.default.OneToMany(typeBuilder, property);
40
+ }
41
+ exports.OneToMany = OneToMany;
42
+ function OneToOne(typeBuilder, property) {
43
+ return SchemasDecorators_1.default.OneToOne(typeBuilder, property);
44
+ }
45
+ exports.OneToOne = OneToOne;
46
+ function ManyToMany(typeBuilder, property) {
47
+ return SchemasDecorators_1.default.ManyToMany(typeBuilder, property);
48
+ }
49
+ exports.ManyToMany = ManyToMany;
50
+ function ManyToOne(typeBuilder, property) {
51
+ return SchemasDecorators_1.default.ManyToOne(typeBuilder, property);
52
+ }
53
+ exports.ManyToOne = ManyToOne;
54
54
  //# sourceMappingURL=Index.js.map
@@ -1,45 +1,45 @@
1
- import 'reflect-metadata';
2
- import { DBTypes } from '../enums/DBTypes';
3
- import { RelationType } from '../enums/RelationType';
4
- export default class SchemasDecorators {
5
- private static _tableAttribute;
6
- private static _columnAttribute;
7
- private static _dataTypeAttribute;
8
- private static _primaryKeyAttribute;
9
- private static _relationAttribute;
10
- private static _notNullAttribute;
11
- static Table(name?: string): (target: Object) => void;
12
- static GetTableAttribute(target: Object): string | undefined;
13
- static Column(name?: string): (target: Object, propertyName: string) => void;
14
- static GetColumnAttribute(cTor: Function, propertyName: string): string | undefined;
15
- static NotNull(): (target: Object, propertyName: string) => void;
16
- static AllowNullValue(cTor: Function, propertyName: string): boolean;
17
- static OneToOne<T>(lazyBuilder: () => {
18
- new (...args: any[]): T;
19
- }, property?: keyof T & string): (target: Object, propertyName: string) => void;
20
- static OneToMany<T>(lazyBuilder: () => {
21
- new (...args: any[]): T;
22
- }, property?: keyof T & string): (target: Object, propertyName: string) => void;
23
- static ManyToOne<T>(lazyBuilder: () => {
24
- new (...args: any[]): T;
25
- }, property?: keyof T & string): (target: Object, propertyName: string) => void;
26
- static ManyToMany<T>(lazyBuilder: () => {
27
- new (...args: any[]): T;
28
- }, property?: keyof T & string): (target: Object, propertyName: string) => void;
29
- private static Relation;
30
- static GetRelationAttribute(cTor: Function, propertyName: string): {
31
- TypeBuilder: () => {
32
- new (...args: any[]): unknown;
33
- };
34
- Relation: RelationType;
35
- Field?: string;
36
- } | undefined;
37
- static PrimaryKey(): (target: Object, propertyName: string) => void;
38
- static IsPrimaryKey(cTor: Function, propertyName: string): boolean;
39
- static ExtractPrimaryKey(cTor: {
40
- new (...args: any[]): unknown;
41
- }): string | undefined;
42
- static DataType(type: DBTypes): (target: Object, propertyName: string) => void;
43
- static GetDataTypeAttribute(cTor: Function, propertyName: string): DBTypes | undefined;
44
- }
1
+ import 'reflect-metadata';
2
+ import { DBTypes } from '../enums/DBTypes';
3
+ import { RelationType } from '../enums/RelationType';
4
+ export default class SchemasDecorators {
5
+ private static _tableAttribute;
6
+ private static _columnAttribute;
7
+ private static _dataTypeAttribute;
8
+ private static _primaryKeyAttribute;
9
+ private static _relationAttribute;
10
+ private static _notNullAttribute;
11
+ static Table(name?: string): (target: Object) => void;
12
+ static GetTableAttribute(target: Object): string | undefined;
13
+ static Column(name?: string): (target: Object, propertyName: string) => void;
14
+ static GetColumnAttribute(cTor: Function, propertyName: string): string | undefined;
15
+ static NotNull(): (target: Object, propertyName: string) => void;
16
+ static AllowNullValue(cTor: Function, propertyName: string): boolean;
17
+ static OneToOne<T>(lazyBuilder: () => {
18
+ new (...args: any[]): T;
19
+ }, property?: keyof T & string): (target: Object, propertyName: string) => void;
20
+ static OneToMany<T>(lazyBuilder: () => {
21
+ new (...args: any[]): T;
22
+ }, property?: keyof T & string): (target: Object, propertyName: string) => void;
23
+ static ManyToOne<T>(lazyBuilder: () => {
24
+ new (...args: any[]): T;
25
+ }, property?: keyof T & string): (target: Object, propertyName: string) => void;
26
+ static ManyToMany<T>(lazyBuilder: () => {
27
+ new (...args: any[]): T;
28
+ }, property?: keyof T & string): (target: Object, propertyName: string) => void;
29
+ private static Relation;
30
+ static GetRelationAttribute(cTor: Function, propertyName: string): {
31
+ TypeBuilder: () => {
32
+ new (...args: any[]): unknown;
33
+ };
34
+ Relation: RelationType;
35
+ Field?: string;
36
+ } | undefined;
37
+ static PrimaryKey(): (target: Object, propertyName: string) => void;
38
+ static IsPrimaryKey(cTor: Function, propertyName: string): boolean;
39
+ static ExtractPrimaryKey(cTor: {
40
+ new (...args: any[]): unknown;
41
+ }): string | undefined;
42
+ static DataType(type: DBTypes): (target: Object, propertyName: string) => void;
43
+ static GetDataTypeAttribute(cTor: Function, propertyName: string): DBTypes | undefined;
44
+ }
45
45
  //# sourceMappingURL=SchemasDecorators.d.ts.map
@@ -1,145 +1,145 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- require("reflect-metadata");
7
- const Type_1 = __importDefault(require("../design/Type"));
8
- const RelationType_1 = require("../enums/RelationType");
9
- class SchemasDecorators {
10
- static Table(name) {
11
- return function (target) {
12
- OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._tableAttribute, undefined, name !== null && name !== void 0 ? name : target.name.toLocaleLowerCase());
13
- Reflect.defineMetadata(SchemasDecorators._tableAttribute, name !== null && name !== void 0 ? name : target.name.toLocaleLowerCase(), target);
14
- };
15
- }
16
- static GetTableAttribute(target) {
17
- var _a;
18
- let meta = Reflect.getMetadata(SchemasDecorators._tableAttribute, target);
19
- if (!meta)
20
- meta = (_a = OwnMetaDataContainer.Get(target.constructor, SchemasDecorators._tableAttribute, undefined)) === null || _a === void 0 ? void 0 : _a.Value;
21
- return meta;
22
- }
23
- static Column(name) {
24
- return function (target, propertyName) {
25
- OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._columnAttribute, propertyName, name !== null && name !== void 0 ? name : propertyName.toLocaleLowerCase());
26
- Reflect.defineMetadata(SchemasDecorators._columnAttribute, name !== null && name !== void 0 ? name : propertyName.toLocaleLowerCase(), target.constructor, propertyName);
27
- };
28
- }
29
- static GetColumnAttribute(cTor, propertyName) {
30
- var _a;
31
- let meta = Reflect.getMetadata(SchemasDecorators._columnAttribute, cTor, propertyName);
32
- if (!meta)
33
- meta = (_a = OwnMetaDataContainer.Get(cTor, SchemasDecorators._columnAttribute, propertyName)) === null || _a === void 0 ? void 0 : _a.Value;
34
- return meta;
35
- }
36
- static NotNull() {
37
- return function (target, propertyName) {
38
- OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._notNullAttribute, propertyName, true);
39
- Reflect.defineMetadata(SchemasDecorators._notNullAttribute, true, target.constructor, propertyName);
40
- };
41
- }
42
- static AllowNullValue(cTor, propertyName) {
43
- var _a, _b;
44
- let meta = Reflect.getMetadata(SchemasDecorators._notNullAttribute, cTor, propertyName);
45
- if (meta == undefined)
46
- meta = (_b = (_a = OwnMetaDataContainer.Get(cTor, SchemasDecorators._notNullAttribute, propertyName)) === null || _a === void 0 ? void 0 : _a.Value) !== null && _b !== void 0 ? _b : false;
47
- return !meta;
48
- }
49
- static OneToOne(lazyBuilder, property) {
50
- return SchemasDecorators.Relation(lazyBuilder, RelationType_1.RelationType.ONE_TO_ONE, property);
51
- }
52
- static OneToMany(lazyBuilder, property) {
53
- return SchemasDecorators.Relation(lazyBuilder, RelationType_1.RelationType.ONE_TO_MANY, property);
54
- }
55
- static ManyToOne(lazyBuilder, property) {
56
- return SchemasDecorators.Relation(lazyBuilder, RelationType_1.RelationType.MANY_TO_ONE, property);
57
- }
58
- static ManyToMany(lazyBuilder, property) {
59
- return SchemasDecorators.Relation(lazyBuilder, RelationType_1.RelationType.MANY_TO_MANY, property);
60
- }
61
- static Relation(lazyBuilder, relation, property) {
62
- return function (target, propertyName) {
63
- OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._relationAttribute, propertyName, { TypeBuilder: lazyBuilder, Relation: relation, Field: property });
64
- Reflect.defineMetadata(SchemasDecorators._relationAttribute, { TypeBuilder: lazyBuilder, Relation: relation, Field: property }, target.constructor, propertyName);
65
- };
66
- }
67
- static GetRelationAttribute(cTor, propertyName) {
68
- var _a;
69
- let meta = Reflect.getMetadata(SchemasDecorators._relationAttribute, cTor, propertyName);
70
- if (!meta)
71
- meta = (_a = OwnMetaDataContainer.Get(cTor, SchemasDecorators._relationAttribute, propertyName)) === null || _a === void 0 ? void 0 : _a.Value;
72
- return meta;
73
- }
74
- static PrimaryKey() {
75
- return function (target, propertyName) {
76
- OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._primaryKeyAttribute, propertyName, true);
77
- Reflect.defineMetadata(SchemasDecorators._primaryKeyAttribute, true, target.constructor, propertyName);
78
- };
79
- }
80
- static IsPrimaryKey(cTor, propertyName) {
81
- var _a, _b;
82
- let meta = Reflect.getMetadata(SchemasDecorators._primaryKeyAttribute, cTor, propertyName);
83
- if (!meta)
84
- meta = Reflect.getMetadata(SchemasDecorators._primaryKeyAttribute, cTor.prototype, propertyName);
85
- if (!meta)
86
- meta = Reflect.getMetadata(SchemasDecorators._primaryKeyAttribute, Reflect.construct(cTor, []), propertyName);
87
- if (!meta)
88
- meta = (_b = (_a = OwnMetaDataContainer.Get(cTor, SchemasDecorators._primaryKeyAttribute, propertyName)) === null || _a === void 0 ? void 0 : _a.Value) !== null && _b !== void 0 ? _b : false;
89
- return meta;
90
- }
91
- static ExtractPrimaryKey(cTor) {
92
- for (let prop of Type_1.default.GetProperties(cTor)) {
93
- if (SchemasDecorators.IsPrimaryKey(cTor, prop))
94
- return prop;
95
- }
96
- return undefined;
97
- }
98
- static DataType(type) {
99
- return function (target, propertyName) {
100
- OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._dataTypeAttribute, propertyName, type);
101
- Reflect.defineMetadata(SchemasDecorators._dataTypeAttribute, type, target.constructor, propertyName);
102
- };
103
- }
104
- static GetDataTypeAttribute(cTor, propertyName) {
105
- var _a;
106
- let value = Reflect.getMetadata(SchemasDecorators._dataTypeAttribute, cTor, propertyName);
107
- if (!value)
108
- value = (_a = OwnMetaDataContainer.Get(cTor, SchemasDecorators._dataTypeAttribute, propertyName)) === null || _a === void 0 ? void 0 : _a.Value;
109
- if (value === undefined)
110
- return undefined;
111
- else
112
- return value;
113
- }
114
- }
115
- exports.default = SchemasDecorators;
116
- SchemasDecorators._tableAttribute = "compile:schema-table";
117
- SchemasDecorators._columnAttribute = "compile:schema-column";
118
- SchemasDecorators._dataTypeAttribute = "compile:schema-dataType";
119
- SchemasDecorators._primaryKeyAttribute = "compile:schema-primarykey";
120
- SchemasDecorators._relationAttribute = "compile:schema-relationWith";
121
- SchemasDecorators._notNullAttribute = "compile:schema-notNull";
122
- class OwnMetaDataContainer {
123
- static Get(target, key, member) {
124
- let meta = this._metadas.filter(s => s.Key == key && (s.CTor == target || s.CTor == target.prototype) && s.Member == member);
125
- if (meta && meta.length > 0)
126
- return meta[0];
127
- return undefined;
128
- }
129
- static Set(target, key, member, value) {
130
- let meta = this.Get(target, key, member);
131
- if (meta) {
132
- meta.Value = value;
133
- }
134
- else {
135
- this._metadas.push({
136
- CTor: target,
137
- Key: key,
138
- Member: member,
139
- Value: value
140
- });
141
- }
142
- }
143
- }
144
- OwnMetaDataContainer._metadas = [];
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ require("reflect-metadata");
7
+ const Type_1 = __importDefault(require("../design/Type"));
8
+ const RelationType_1 = require("../enums/RelationType");
9
+ class SchemasDecorators {
10
+ static Table(name) {
11
+ return function (target) {
12
+ OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._tableAttribute, undefined, name !== null && name !== void 0 ? name : target.name.toLocaleLowerCase());
13
+ Reflect.defineMetadata(SchemasDecorators._tableAttribute, name !== null && name !== void 0 ? name : target.name.toLocaleLowerCase(), target);
14
+ };
15
+ }
16
+ static GetTableAttribute(target) {
17
+ var _a;
18
+ let meta = Reflect.getMetadata(SchemasDecorators._tableAttribute, target);
19
+ if (!meta)
20
+ meta = (_a = OwnMetaDataContainer.Get(target.constructor, SchemasDecorators._tableAttribute, undefined)) === null || _a === void 0 ? void 0 : _a.Value;
21
+ return meta;
22
+ }
23
+ static Column(name) {
24
+ return function (target, propertyName) {
25
+ OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._columnAttribute, propertyName, name !== null && name !== void 0 ? name : propertyName.toLocaleLowerCase());
26
+ Reflect.defineMetadata(SchemasDecorators._columnAttribute, name !== null && name !== void 0 ? name : propertyName.toLocaleLowerCase(), target.constructor, propertyName);
27
+ };
28
+ }
29
+ static GetColumnAttribute(cTor, propertyName) {
30
+ var _a;
31
+ let meta = Reflect.getMetadata(SchemasDecorators._columnAttribute, cTor, propertyName);
32
+ if (!meta)
33
+ meta = (_a = OwnMetaDataContainer.Get(cTor, SchemasDecorators._columnAttribute, propertyName)) === null || _a === void 0 ? void 0 : _a.Value;
34
+ return meta;
35
+ }
36
+ static NotNull() {
37
+ return function (target, propertyName) {
38
+ OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._notNullAttribute, propertyName, true);
39
+ Reflect.defineMetadata(SchemasDecorators._notNullAttribute, true, target.constructor, propertyName);
40
+ };
41
+ }
42
+ static AllowNullValue(cTor, propertyName) {
43
+ var _a, _b;
44
+ let meta = Reflect.getMetadata(SchemasDecorators._notNullAttribute, cTor, propertyName);
45
+ if (meta == undefined)
46
+ meta = (_b = (_a = OwnMetaDataContainer.Get(cTor, SchemasDecorators._notNullAttribute, propertyName)) === null || _a === void 0 ? void 0 : _a.Value) !== null && _b !== void 0 ? _b : false;
47
+ return !meta;
48
+ }
49
+ static OneToOne(lazyBuilder, property) {
50
+ return SchemasDecorators.Relation(lazyBuilder, RelationType_1.RelationType.ONE_TO_ONE, property);
51
+ }
52
+ static OneToMany(lazyBuilder, property) {
53
+ return SchemasDecorators.Relation(lazyBuilder, RelationType_1.RelationType.ONE_TO_MANY, property);
54
+ }
55
+ static ManyToOne(lazyBuilder, property) {
56
+ return SchemasDecorators.Relation(lazyBuilder, RelationType_1.RelationType.MANY_TO_ONE, property);
57
+ }
58
+ static ManyToMany(lazyBuilder, property) {
59
+ return SchemasDecorators.Relation(lazyBuilder, RelationType_1.RelationType.MANY_TO_MANY, property);
60
+ }
61
+ static Relation(lazyBuilder, relation, property) {
62
+ return function (target, propertyName) {
63
+ OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._relationAttribute, propertyName, { TypeBuilder: lazyBuilder, Relation: relation, Field: property });
64
+ Reflect.defineMetadata(SchemasDecorators._relationAttribute, { TypeBuilder: lazyBuilder, Relation: relation, Field: property }, target.constructor, propertyName);
65
+ };
66
+ }
67
+ static GetRelationAttribute(cTor, propertyName) {
68
+ var _a;
69
+ let meta = Reflect.getMetadata(SchemasDecorators._relationAttribute, cTor, propertyName);
70
+ if (!meta)
71
+ meta = (_a = OwnMetaDataContainer.Get(cTor, SchemasDecorators._relationAttribute, propertyName)) === null || _a === void 0 ? void 0 : _a.Value;
72
+ return meta;
73
+ }
74
+ static PrimaryKey() {
75
+ return function (target, propertyName) {
76
+ OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._primaryKeyAttribute, propertyName, true);
77
+ Reflect.defineMetadata(SchemasDecorators._primaryKeyAttribute, true, target.constructor, propertyName);
78
+ };
79
+ }
80
+ static IsPrimaryKey(cTor, propertyName) {
81
+ var _a, _b;
82
+ let meta = Reflect.getMetadata(SchemasDecorators._primaryKeyAttribute, cTor, propertyName);
83
+ if (!meta)
84
+ meta = Reflect.getMetadata(SchemasDecorators._primaryKeyAttribute, cTor.prototype, propertyName);
85
+ if (!meta)
86
+ meta = Reflect.getMetadata(SchemasDecorators._primaryKeyAttribute, Reflect.construct(cTor, []), propertyName);
87
+ if (!meta)
88
+ meta = (_b = (_a = OwnMetaDataContainer.Get(cTor, SchemasDecorators._primaryKeyAttribute, propertyName)) === null || _a === void 0 ? void 0 : _a.Value) !== null && _b !== void 0 ? _b : false;
89
+ return meta;
90
+ }
91
+ static ExtractPrimaryKey(cTor) {
92
+ for (let prop of Type_1.default.GetProperties(cTor)) {
93
+ if (SchemasDecorators.IsPrimaryKey(cTor, prop))
94
+ return prop;
95
+ }
96
+ return undefined;
97
+ }
98
+ static DataType(type) {
99
+ return function (target, propertyName) {
100
+ OwnMetaDataContainer.Set(target.constructor, SchemasDecorators._dataTypeAttribute, propertyName, type);
101
+ Reflect.defineMetadata(SchemasDecorators._dataTypeAttribute, type, target.constructor, propertyName);
102
+ };
103
+ }
104
+ static GetDataTypeAttribute(cTor, propertyName) {
105
+ var _a;
106
+ let value = Reflect.getMetadata(SchemasDecorators._dataTypeAttribute, cTor, propertyName);
107
+ if (!value)
108
+ value = (_a = OwnMetaDataContainer.Get(cTor, SchemasDecorators._dataTypeAttribute, propertyName)) === null || _a === void 0 ? void 0 : _a.Value;
109
+ if (value === undefined)
110
+ return undefined;
111
+ else
112
+ return value;
113
+ }
114
+ }
115
+ SchemasDecorators._tableAttribute = "compile:schema-table";
116
+ SchemasDecorators._columnAttribute = "compile:schema-column";
117
+ SchemasDecorators._dataTypeAttribute = "compile:schema-dataType";
118
+ SchemasDecorators._primaryKeyAttribute = "compile:schema-primarykey";
119
+ SchemasDecorators._relationAttribute = "compile:schema-relationWith";
120
+ SchemasDecorators._notNullAttribute = "compile:schema-notNull";
121
+ exports.default = SchemasDecorators;
122
+ class OwnMetaDataContainer {
123
+ static Get(target, key, member) {
124
+ let meta = this._metadas.filter(s => s.Key == key && (s.CTor == target || s.CTor == target.prototype) && s.Member == member);
125
+ if (meta && meta.length > 0)
126
+ return meta[0];
127
+ return undefined;
128
+ }
129
+ static Set(target, key, member, value) {
130
+ let meta = this.Get(target, key, member);
131
+ if (meta) {
132
+ meta.Value = value;
133
+ }
134
+ else {
135
+ this._metadas.push({
136
+ CTor: target,
137
+ Key: key,
138
+ Member: member,
139
+ Value: value
140
+ });
141
+ }
142
+ }
143
+ }
144
+ OwnMetaDataContainer._metadas = [];
145
145
  //# sourceMappingURL=SchemasDecorators.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SchemasDecorators.js","sourceRoot":"","sources":["../../../src/core/decorators/SchemasDecorators.ts"],"names":[],"mappings":";;;;;AACA,4BAA0B;AAE1B,0DAAkC;AAClC,wDAAqD;AAErD,MAAqB,iBAAiB;IAY3B,MAAM,CAAC,KAAK,CAAC,IAAc;QAE9B,OAAO,UAAU,MAAe;YAE5B,oBAAoB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,iBAAiB,CAAC,eAAe,EAAE,SAAS,EAAE,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAK,MAAmB,CAAC,IAAI,CAAC,iBAAiB,EAAE,C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