myorm_pg 6.1.2 → 6.1.4
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/lib/__tests__/classes/RawTypes.d.ts +3 -0
- package/lib/__tests__/classes/RawTypes.d.ts.map +1 -0
- package/lib/__tests__/classes/RawTypes.js +16 -0
- package/lib/__tests__/classes/RawTypes.js.map +1 -0
- package/lib/__tests__/classes/RelationEntity.d.ts +12 -0
- package/lib/__tests__/classes/RelationEntity.d.ts.map +1 -0
- package/lib/__tests__/classes/RelationEntity.js +65 -0
- package/lib/__tests__/classes/RelationEntity.js.map +1 -0
- package/lib/__tests__/classes/TestContext.d.ts +9 -0
- package/lib/__tests__/classes/TestContext.d.ts.map +1 -0
- package/lib/__tests__/classes/TestContext.js +14 -0
- package/lib/__tests__/classes/TestContext.js.map +1 -0
- package/lib/__tests__/classes/TestEntity.d.ts +18 -0
- package/lib/__tests__/classes/TestEntity.d.ts.map +1 -0
- package/lib/__tests__/classes/TestEntity.js +99 -0
- package/lib/__tests__/classes/TestEntity.js.map +1 -0
- package/lib/__tests__/functions/TestFunctions.d.ts +11 -0
- package/lib/__tests__/functions/TestFunctions.d.ts.map +1 -0
- package/lib/__tests__/functions/TestFunctions.js +137 -0
- package/lib/__tests__/functions/TestFunctions.js.map +1 -0
- package/lib/implementations/PGDBSet.d.ts.map +1 -1
- package/lib/implementations/PGDBSet.js +13 -4
- package/lib/implementations/PGDBSet.js.map +1 -1
- package/lib/src/Index.d.ts +41 -0
- package/lib/src/Index.d.ts.map +1 -0
- package/lib/src/Index.js +64 -0
- package/lib/src/Index.js.map +1 -0
- package/lib/src/core/decorators/SchemasDecorators.d.ts +45 -0
- package/lib/src/core/decorators/SchemasDecorators.d.ts.map +1 -0
- package/lib/src/core/decorators/SchemasDecorators.js +145 -0
- package/lib/src/core/decorators/SchemasDecorators.js.map +1 -0
- package/lib/src/core/design/Type.d.ts +39 -0
- package/lib/src/core/design/Type.d.ts.map +1 -0
- package/lib/src/core/design/Type.js +144 -0
- package/lib/src/core/design/Type.js.map +1 -0
- package/lib/src/core/enums/DBTypes.d.ts +19 -0
- package/lib/src/core/enums/DBTypes.d.ts.map +1 -0
- package/lib/src/core/enums/DBTypes.js +23 -0
- package/lib/src/core/enums/DBTypes.js.map +1 -0
- package/lib/src/core/enums/RelationType.d.ts +7 -0
- package/lib/src/core/enums/RelationType.d.ts.map +1 -0
- package/lib/src/core/enums/RelationType.js +11 -0
- package/lib/src/core/enums/RelationType.js.map +1 -0
- package/lib/src/core/exceptions/ConnectionFailException.d.ts +5 -0
- package/lib/src/core/exceptions/ConnectionFailException.d.ts.map +1 -0
- package/lib/src/core/exceptions/ConnectionFailException.js +13 -0
- package/lib/src/core/exceptions/ConnectionFailException.js.map +1 -0
- package/lib/src/core/exceptions/ConstraintFailException.d.ts +5 -0
- package/lib/src/core/exceptions/ConstraintFailException.d.ts.map +1 -0
- package/lib/src/core/exceptions/ConstraintFailException.js +13 -0
- package/lib/src/core/exceptions/ConstraintFailException.js.map +1 -0
- package/lib/src/core/exceptions/Exception.d.ts +5 -0
- package/lib/src/core/exceptions/Exception.d.ts.map +1 -0
- package/lib/src/core/exceptions/Exception.js +10 -0
- package/lib/src/core/exceptions/Exception.js.map +1 -0
- package/lib/src/core/exceptions/InvalidOperationException.d.ts +6 -0
- package/lib/src/core/exceptions/InvalidOperationException.d.ts.map +1 -0
- package/lib/src/core/exceptions/InvalidOperationException.js +14 -0
- package/lib/src/core/exceptions/InvalidOperationException.js.map +1 -0
- package/lib/src/core/exceptions/NotImplementedException.d.ts +5 -0
- package/lib/src/core/exceptions/NotImplementedException.d.ts.map +1 -0
- package/lib/src/core/exceptions/NotImplementedException.js +13 -0
- package/lib/src/core/exceptions/NotImplementedException.js.map +1 -0
- package/lib/src/core/exceptions/QueryFailException.d.ts +6 -0
- package/lib/src/core/exceptions/QueryFailException.d.ts.map +1 -0
- package/lib/src/core/exceptions/QueryFailException.js +14 -0
- package/lib/src/core/exceptions/QueryFailException.js.map +1 -0
- package/lib/src/core/exceptions/TypeNotMappedException.d.ts +5 -0
- package/lib/src/core/exceptions/TypeNotMappedException.d.ts.map +1 -0
- package/lib/src/core/exceptions/TypeNotMappedException.js +13 -0
- package/lib/src/core/exceptions/TypeNotMappedException.js.map +1 -0
- package/lib/src/core/exceptions/TypeNotSuportedException.d.ts +5 -0
- package/lib/src/core/exceptions/TypeNotSuportedException.d.ts.map +1 -0
- package/lib/src/core/exceptions/TypeNotSuportedException.js +13 -0
- package/lib/src/core/exceptions/TypeNotSuportedException.js.map +1 -0
- package/lib/src/core/handlers/DBOperationLogHandler.d.ts +17 -0
- package/lib/src/core/handlers/DBOperationLogHandler.d.ts.map +1 -0
- package/lib/src/core/handlers/DBOperationLogHandler.js +18 -0
- package/lib/src/core/handlers/DBOperationLogHandler.js.map +1 -0
- package/lib/src/implementations/PGDBConnection.d.ts +19 -0
- package/lib/src/implementations/PGDBConnection.d.ts.map +1 -0
- package/lib/src/implementations/PGDBConnection.js +105 -0
- package/lib/src/implementations/PGDBConnection.js.map +1 -0
- package/lib/src/implementations/PGDBContext.d.ts +54 -0
- package/lib/src/implementations/PGDBContext.d.ts.map +1 -0
- package/lib/src/implementations/PGDBContext.js +302 -0
- package/lib/src/implementations/PGDBContext.js.map +1 -0
- package/lib/src/implementations/PGDBManager.d.ts +37 -0
- package/lib/src/implementations/PGDBManager.d.ts.map +1 -0
- package/lib/src/implementations/PGDBManager.js +296 -0
- package/lib/src/implementations/PGDBManager.js.map +1 -0
- package/lib/src/implementations/PGDBSet.d.ts +60 -0
- package/lib/src/implementations/PGDBSet.d.ts.map +1 -0
- package/lib/src/implementations/PGDBSet.js +1385 -0
- package/lib/src/implementations/PGDBSet.js.map +1 -0
- package/lib/src/implementations/PGFluentField.d.ts +18 -0
- package/lib/src/implementations/PGFluentField.d.ts.map +1 -0
- package/lib/src/implementations/PGFluentField.js +155 -0
- package/lib/src/implementations/PGFluentField.js.map +1 -0
- package/lib/src/implementations/PGSetHelper.d.ts +19 -0
- package/lib/src/implementations/PGSetHelper.d.ts.map +1 -0
- package/lib/src/implementations/PGSetHelper.js +48 -0
- package/lib/src/implementations/PGSetHelper.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,144 @@
|
|
|
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 SchemasDecorators_1 = __importDefault(require("../decorators/SchemasDecorators"));
|
|
8
|
+
const DBTypes_1 = require("../enums/DBTypes");
|
|
9
|
+
const TypeNotSuportedException_1 = __importDefault(require("../exceptions/TypeNotSuportedException"));
|
|
10
|
+
class Type {
|
|
11
|
+
static GetProperties(cTor) {
|
|
12
|
+
let empty = Reflect.construct(cTor, []);
|
|
13
|
+
return Object.keys(empty);
|
|
14
|
+
}
|
|
15
|
+
static GetDesingType(cTor, propertyName) {
|
|
16
|
+
return Reflect.getMetadata("design:type", cTor.prototype, propertyName);
|
|
17
|
+
}
|
|
18
|
+
static GetDesingTimeTypeName(cTor, propertyName) {
|
|
19
|
+
let type = SchemasDecorators_1.default.GetDataTypeAttribute(cTor, propertyName);
|
|
20
|
+
if (type == undefined)
|
|
21
|
+
type = Reflect.getMetadata("design:type", cTor.prototype, propertyName);
|
|
22
|
+
if (typeof type === "function")
|
|
23
|
+
type = type.name;
|
|
24
|
+
return type === null || type === void 0 ? void 0 : type.toString();
|
|
25
|
+
}
|
|
26
|
+
static AsArray(type) {
|
|
27
|
+
if (type == "serial")
|
|
28
|
+
return DBTypes_1.DBTypes.INTEGERARRAY;
|
|
29
|
+
if (type.endsWith("[]"))
|
|
30
|
+
return type;
|
|
31
|
+
else
|
|
32
|
+
return `${type}[]`;
|
|
33
|
+
}
|
|
34
|
+
static InjectMetadata(object, metadata) {
|
|
35
|
+
let meta = Type.ExtractMetadata(object);
|
|
36
|
+
meta = meta.filter(s => s.Field != metadata.Field);
|
|
37
|
+
meta.push(metadata);
|
|
38
|
+
Reflect.set(object, '_orm_metadata_', meta);
|
|
39
|
+
}
|
|
40
|
+
static ExtractMetadata(object) {
|
|
41
|
+
var _a;
|
|
42
|
+
return (_a = Reflect.get(object, '_orm_metadata_')) !== null && _a !== void 0 ? _a : [];
|
|
43
|
+
}
|
|
44
|
+
static DeleteMetadata(object) {
|
|
45
|
+
if (Reflect.has(object, "_orm_metadata_")) {
|
|
46
|
+
delete object._orm_metadata_;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
static GetTableName(cTor) {
|
|
50
|
+
var _a;
|
|
51
|
+
return (_a = SchemasDecorators_1.default.GetTableAttribute(cTor)) !== null && _a !== void 0 ? _a : cTor.name;
|
|
52
|
+
}
|
|
53
|
+
static GetColumnName(cTor, key) {
|
|
54
|
+
return SchemasDecorators_1.default.GetColumnAttribute(cTor, key);
|
|
55
|
+
}
|
|
56
|
+
static HasValue(obj) {
|
|
57
|
+
if (typeof obj == "string") {
|
|
58
|
+
return obj.length > 0;
|
|
59
|
+
}
|
|
60
|
+
if (typeof obj == "number") {
|
|
61
|
+
return obj > 0;
|
|
62
|
+
}
|
|
63
|
+
if (typeof obj == "object") {
|
|
64
|
+
return obj != undefined;
|
|
65
|
+
}
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
static GetColumnNameAndType(cTor) {
|
|
69
|
+
let keys = Type.GetProperties(cTor).filter(s => SchemasDecorators_1.default.GetColumnAttribute(cTor, s) != undefined);
|
|
70
|
+
let values = [];
|
|
71
|
+
for (let key of keys) {
|
|
72
|
+
let meta = Type.GetColumnName(cTor, key);
|
|
73
|
+
let type = Type.GetDesingTimeTypeName(cTor, key);
|
|
74
|
+
let relation = SchemasDecorators_1.default.GetRelationAttribute(cTor, key);
|
|
75
|
+
if (!type && relation)
|
|
76
|
+
type = relation.TypeBuilder().name;
|
|
77
|
+
if (meta != undefined && type) {
|
|
78
|
+
values.push({
|
|
79
|
+
Field: key.toString(),
|
|
80
|
+
Column: meta,
|
|
81
|
+
Type: type
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return values;
|
|
86
|
+
}
|
|
87
|
+
static IsArray(dbType) {
|
|
88
|
+
switch (dbType.toLowerCase()) {
|
|
89
|
+
case DBTypes_1.DBTypes.INTEGERARRAY: return true;
|
|
90
|
+
case DBTypes_1.DBTypes.TEXTARRAY: return true;
|
|
91
|
+
case DBTypes_1.DBTypes.BOOLEANARRAY: return true;
|
|
92
|
+
case DBTypes_1.DBTypes.DATEARRAY: return true;
|
|
93
|
+
case DBTypes_1.DBTypes.DATETIMEARRAY: return true;
|
|
94
|
+
case DBTypes_1.DBTypes.LONGARRAY: return true;
|
|
95
|
+
case DBTypes_1.DBTypes.DOUBLEARRAY: return true;
|
|
96
|
+
}
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
static ExtractElementType(dbType) {
|
|
100
|
+
return dbType.toLowerCase().toString().replace('[]', '');
|
|
101
|
+
}
|
|
102
|
+
static IsDate(dbType) {
|
|
103
|
+
switch (dbType.toLowerCase()) {
|
|
104
|
+
case DBTypes_1.DBTypes.DATE: return true;
|
|
105
|
+
case DBTypes_1.DBTypes.DATETIME: return true;
|
|
106
|
+
}
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
static IsNumber(dbType) {
|
|
110
|
+
switch (dbType.toLowerCase()) {
|
|
111
|
+
case DBTypes_1.DBTypes.LONG: return true;
|
|
112
|
+
case DBTypes_1.DBTypes.SERIAL: return true;
|
|
113
|
+
case DBTypes_1.DBTypes.INTEGER: return true;
|
|
114
|
+
case DBTypes_1.DBTypes.DOUBLE: return true;
|
|
115
|
+
}
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
static IsText(dbType) {
|
|
119
|
+
switch (dbType.toLowerCase()) {
|
|
120
|
+
case DBTypes_1.DBTypes.TEXT: return true;
|
|
121
|
+
}
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @method
|
|
127
|
+
* @param {string} type the type from desing type to be converted to a DBTypes enum
|
|
128
|
+
* @returns the DBTypes correspondent
|
|
129
|
+
*/
|
|
130
|
+
static CastType(type) {
|
|
131
|
+
for (let k in DBTypes_1.DBTypes) {
|
|
132
|
+
if (DBTypes_1.DBTypes[k] == type.toLowerCase().trim())
|
|
133
|
+
return DBTypes_1.DBTypes[k];
|
|
134
|
+
}
|
|
135
|
+
switch (type.toLowerCase()) {
|
|
136
|
+
case "number": return DBTypes_1.DBTypes.DOUBLE;
|
|
137
|
+
case "string": return DBTypes_1.DBTypes.TEXT;
|
|
138
|
+
case "object": return DBTypes_1.DBTypes.CLASS;
|
|
139
|
+
default: throw new TypeNotSuportedException_1.default(`The type ${type} is not suported or is not mapped in this instance of PGContext`);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.default = Type;
|
|
144
|
+
//# sourceMappingURL=Type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Type.js","sourceRoot":"","sources":["../../../../src/core/design/Type.ts"],"names":[],"mappings":";;;;;AACA,4BAA0B;AAE1B,wFAAgE;AAChE,8CAA2C;AAC3C,sGAA8E;AAE9E,MAAqB,IAAI;IAEd,MAAM,CAAC,aAAa,CAAC,IAAe;QAEvC,IAAI,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAExC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,IAAe,EAAE,YAAqB;QAE9D,OAAO,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,CAAqC,CAAC;IAChH,CAAC;IAEM,MAA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export declare enum DBTypes {
|
|
2
|
+
INTEGER = "integer",
|
|
3
|
+
LONG = "long",
|
|
4
|
+
DOUBLE = "double",
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
DATE = "date",
|
|
7
|
+
DATETIME = "datetime",
|
|
8
|
+
BOOLEAN = "boolean",
|
|
9
|
+
INTEGERARRAY = "integer[]",
|
|
10
|
+
LONGARRAY = "long[]",
|
|
11
|
+
DOUBLEARRAY = "double[]",
|
|
12
|
+
TEXTARRAY = "text[]",
|
|
13
|
+
DATEARRAY = "date[]",
|
|
14
|
+
DATETIMEARRAY = "datetime[]",
|
|
15
|
+
BOOLEANARRAY = "boolean[]",
|
|
16
|
+
SERIAL = "serial",
|
|
17
|
+
CLASS = "object"
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=DBTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DBTypes.d.ts","sourceRoot":"","sources":["../../../../src/core/enums/DBTypes.ts"],"names":[],"mappings":"AACA,oBAAY,OAAO;IAEf,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,YAAY,cAAc;IAC1B,SAAS,WAAW;IACpB,WAAW,aAAa;IACxB,SAAS,WAAW;IACpB,SAAS,WAAW;IACpB,aAAa,eAAe;IAC5B,YAAY,cAAc;IAC1B,MAAM,WAAW;IACjB,KAAK,WAAW;CACnB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DBTypes = void 0;
|
|
4
|
+
var DBTypes;
|
|
5
|
+
(function (DBTypes) {
|
|
6
|
+
DBTypes["INTEGER"] = "integer";
|
|
7
|
+
DBTypes["LONG"] = "long";
|
|
8
|
+
DBTypes["DOUBLE"] = "double";
|
|
9
|
+
DBTypes["TEXT"] = "text";
|
|
10
|
+
DBTypes["DATE"] = "date";
|
|
11
|
+
DBTypes["DATETIME"] = "datetime";
|
|
12
|
+
DBTypes["BOOLEAN"] = "boolean";
|
|
13
|
+
DBTypes["INTEGERARRAY"] = "integer[]";
|
|
14
|
+
DBTypes["LONGARRAY"] = "long[]";
|
|
15
|
+
DBTypes["DOUBLEARRAY"] = "double[]";
|
|
16
|
+
DBTypes["TEXTARRAY"] = "text[]";
|
|
17
|
+
DBTypes["DATEARRAY"] = "date[]";
|
|
18
|
+
DBTypes["DATETIMEARRAY"] = "datetime[]";
|
|
19
|
+
DBTypes["BOOLEANARRAY"] = "boolean[]";
|
|
20
|
+
DBTypes["SERIAL"] = "serial";
|
|
21
|
+
DBTypes["CLASS"] = "object";
|
|
22
|
+
})(DBTypes || (exports.DBTypes = DBTypes = {}));
|
|
23
|
+
//# sourceMappingURL=DBTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DBTypes.js","sourceRoot":"","sources":["../../../../src/core/enums/DBTypes.ts"],"names":[],"mappings":";;;AACA,IAAY,OAkBX;AAlBD,WAAY,OAAO;IAEf,8BAAmB,CAAA;IACnB,wBAAa,CAAA;IACb,4BAAiB,CAAA;IACjB,wBAAa,CAAA;IACb,wBAAa,CAAA;IACb,gCAAqB,CAAA;IACrB,8BAAmB,CAAA;IACnB,qCAA0B,CAAA;IAC1B,+BAAoB,CAAA;IACpB,mCAAwB,CAAA;IACxB,+BAAoB,CAAA;IACpB,+BAAoB,CAAA;IACpB,uCAA4B,CAAA;IAC5B,qCAA0B,CAAA;IAC1B,4BAAiB,CAAA;IACjB,2BAAgB,CAAA;AACpB,CAAC,EAlBW,OAAO,uBAAP,OAAO,QAkBlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationType.d.ts","sourceRoot":"","sources":["../../../../src/core/enums/RelationType.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IAEpB,UAAU,aAAa;IACvB,WAAW,cAAc;IACzB,WAAW,cAAc;IACzB,YAAY,eAAe;CAC9B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationType = void 0;
|
|
4
|
+
var RelationType;
|
|
5
|
+
(function (RelationType) {
|
|
6
|
+
RelationType["ONE_TO_ONE"] = "oneToOne";
|
|
7
|
+
RelationType["ONE_TO_MANY"] = "oneToMany";
|
|
8
|
+
RelationType["MANY_TO_ONE"] = "ManyToOne";
|
|
9
|
+
RelationType["MANY_TO_MANY"] = "ManyToMany";
|
|
10
|
+
})(RelationType || (exports.RelationType = RelationType = {}));
|
|
11
|
+
//# sourceMappingURL=RelationType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationType.js","sourceRoot":"","sources":["../../../../src/core/enums/RelationType.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAMX;AAND,WAAY,YAAY;IAEpB,uCAAuB,CAAA;IACvB,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;IACzB,2CAA2B,CAAA;AAC/B,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectionFailException.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/ConnectionFailException.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,SAAS;gBAE9C,OAAO,EAAG,MAAM;CAI/B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
+
class ConnectionFailException extends Exception_1.default {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = ConnectionFailException;
|
|
13
|
+
//# sourceMappingURL=ConnectionFailException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectionFailException.js","sourceRoot":"","sources":["../../../../src/core/exceptions/ConnectionFailException.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AAEpC,MAAqB,uBAAwB,SAAQ,mBAAS;IAE1D,YAAY,OAAgB;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;CACJ;AAND,0CAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConstraintFailException.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/ConstraintFailException.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,SAAS;gBAE9C,OAAO,EAAG,MAAM;CAI/B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
+
class ConstraintFailException extends Exception_1.default {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = ConstraintFailException;
|
|
13
|
+
//# sourceMappingURL=ConstraintFailException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConstraintFailException.js","sourceRoot":"","sources":["../../../../src/core/exceptions/ConstraintFailException.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AAEpC,MAAqB,uBAAwB,SAAQ,mBAAS;IAE1D,YAAY,OAAgB;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;CACJ;AAND,0CAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Exception.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/Exception.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK;IAEjC,OAAO,EAAI,MAAM,CAAA;gBAEZ,OAAO,EAAG,MAAM;CAK/B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Exception extends Error {
|
|
4
|
+
constructor(message) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.Message = message;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.default = Exception;
|
|
10
|
+
//# sourceMappingURL=Exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../../src/core/exceptions/Exception.ts"],"names":[],"mappings":";;AAAA,MAAqB,SAAU,SAAQ,KAAK;IAIxC,YAAY,OAAgB;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;CACJ;AATD,4BASC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidOperationException.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/InvalidOperationException.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,SAAS;IAErD,OAAO,EAAI,MAAM,CAAA;gBAEZ,OAAO,EAAG,MAAM;CAK/B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
+
class InvalidOperationException extends Exception_1.default {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.Message = message;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = InvalidOperationException;
|
|
14
|
+
//# sourceMappingURL=InvalidOperationException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidOperationException.js","sourceRoot":"","sources":["../../../../src/core/exceptions/InvalidOperationException.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AAEpC,MAAqB,yBAA0B,SAAQ,mBAAS;IAI5D,YAAY,OAAgB;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;CACJ;AATD,4CASC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotImplementedException.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/NotImplementedException.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,SAAS;gBAE3C,OAAO,EAAG,MAAM;CAI/B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
+
class NotImpletedException extends Exception_1.default {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = NotImpletedException;
|
|
13
|
+
//# sourceMappingURL=NotImplementedException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotImplementedException.js","sourceRoot":"","sources":["../../../../src/core/exceptions/NotImplementedException.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AAEpC,MAAqB,oBAAqB,SAAQ,mBAAS;IAEvD,YAAY,OAAgB;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;CACJ;AAND,uCAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryFailException.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/QueryFailException.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAS;IAE9C,KAAK,EAAI,MAAM,CAAC;gBAEX,OAAO,EAAG,MAAM,EAAE,KAAK,EAAG,MAAM;CAK/C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
+
class QueryFailException extends Exception_1.default {
|
|
8
|
+
constructor(message, query) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.Query = query;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = QueryFailException;
|
|
14
|
+
//# sourceMappingURL=QueryFailException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryFailException.js","sourceRoot":"","sources":["../../../../src/core/exceptions/QueryFailException.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AAEpC,MAAqB,kBAAmB,SAAQ,mBAAS;IAIrD,YAAY,OAAgB,EAAE,KAAc;QAExC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;CACJ;AATD,qCASC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeNotMappedException.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/TypeNotMappedException.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAIpC,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,SAAS;gBAC7C,OAAO,EAAE,MAAM;CAG9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
+
class TypeNotMappedException extends Exception_1.default {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = TypeNotMappedException;
|
|
13
|
+
//# sourceMappingURL=TypeNotMappedException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeNotMappedException.js","sourceRoot":"","sources":["../../../../src/core/exceptions/TypeNotMappedException.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AAIpC,MAAqB,sBAAuB,SAAQ,mBAAS;IACzD,YAAY,OAAe;QACvB,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;CACJ;AAJD,yCAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeNotSuportedException.d.ts","sourceRoot":"","sources":["../../../../src/core/exceptions/TypeNotSuportedException.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,SAAS;gBAE/C,OAAO,EAAG,MAAM;CAI/B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
+
class TypeNotSuportedException extends Exception_1.default {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = TypeNotSuportedException;
|
|
13
|
+
//# sourceMappingURL=TypeNotSuportedException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeNotSuportedException.js","sourceRoot":"","sources":["../../../../src/core/exceptions/TypeNotSuportedException.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AAEpC,MAAqB,wBAAyB,SAAQ,mBAAS;IAE3D,YAAY,OAAgB;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;CACJ;AAND,2CAMC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default interface DBOperationLogHandler {
|
|
2
|
+
(message: string, type: LogType): void;
|
|
3
|
+
}
|
|
4
|
+
export declare enum LogType {
|
|
5
|
+
CHECKCONNECTION = 0,
|
|
6
|
+
CHECKDATABASE = 1,
|
|
7
|
+
CREATEDATABASE = 2,
|
|
8
|
+
CHECKTABLE = 3,
|
|
9
|
+
CREATETABLE = 4,
|
|
10
|
+
CHECKCOLUMN = 5,
|
|
11
|
+
CHECKCOLUMNTYPE = 6,
|
|
12
|
+
CREATECOLUMN = 7,
|
|
13
|
+
CHANGECOLUMN = 8,
|
|
14
|
+
CHECKENTITY = 9,
|
|
15
|
+
QUERY = 10
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=DBOperationLogHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DBOperationLogHandler.d.ts","sourceRoot":"","sources":["../../../../src/core/handlers/DBOperationLogHandler.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,qBAAqB;IAE1C,CAAC,OAAO,EAAG,MAAM,EAAE,IAAI,EAAG,OAAO,GAAI,IAAI,CAAC;CAC7C;AAED,oBAAY,OAAO;IAEf,eAAe,IAAA;IACf,aAAa,IAAA;IACb,cAAc,IAAA;IACd,UAAU,IAAA;IACV,WAAW,IAAA;IACX,WAAW,IAAA;IACX,eAAe,IAAA;IACf,YAAY,IAAA;IACZ,YAAY,IAAA;IACZ,WAAW,IAAA;IACX,KAAK,KAAA;CACR"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LogType = void 0;
|
|
4
|
+
var LogType;
|
|
5
|
+
(function (LogType) {
|
|
6
|
+
LogType[LogType["CHECKCONNECTION"] = 0] = "CHECKCONNECTION";
|
|
7
|
+
LogType[LogType["CHECKDATABASE"] = 1] = "CHECKDATABASE";
|
|
8
|
+
LogType[LogType["CREATEDATABASE"] = 2] = "CREATEDATABASE";
|
|
9
|
+
LogType[LogType["CHECKTABLE"] = 3] = "CHECKTABLE";
|
|
10
|
+
LogType[LogType["CREATETABLE"] = 4] = "CREATETABLE";
|
|
11
|
+
LogType[LogType["CHECKCOLUMN"] = 5] = "CHECKCOLUMN";
|
|
12
|
+
LogType[LogType["CHECKCOLUMNTYPE"] = 6] = "CHECKCOLUMNTYPE";
|
|
13
|
+
LogType[LogType["CREATECOLUMN"] = 7] = "CREATECOLUMN";
|
|
14
|
+
LogType[LogType["CHANGECOLUMN"] = 8] = "CHANGECOLUMN";
|
|
15
|
+
LogType[LogType["CHECKENTITY"] = 9] = "CHECKENTITY";
|
|
16
|
+
LogType[LogType["QUERY"] = 10] = "QUERY";
|
|
17
|
+
})(LogType || (exports.LogType = LogType = {}));
|
|
18
|
+
//# sourceMappingURL=DBOperationLogHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DBOperationLogHandler.js","sourceRoot":"","sources":["../../../../src/core/handlers/DBOperationLogHandler.ts"],"names":[],"mappings":";;;AAKA,IAAY,OAaX;AAbD,WAAY,OAAO;IAEf,2DAAe,CAAA;IACf,uDAAa,CAAA;IACb,yDAAc,CAAA;IACd,iDAAU,CAAA;IACV,mDAAW,CAAA;IACX,mDAAW,CAAA;IACX,2DAAe,CAAA;IACf,qDAAY,CAAA;IACZ,qDAAY,CAAA;IACZ,mDAAW,CAAA;IACX,wCAAK,CAAA;AACT,CAAC,EAbW,OAAO,uBAAP,OAAO,QAalB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AbstractConnection } from 'myorm_core';
|
|
2
|
+
export default class PGDBConnection extends AbstractConnection {
|
|
3
|
+
HostName: string;
|
|
4
|
+
Port: number;
|
|
5
|
+
DataBaseName: string;
|
|
6
|
+
UserName: string;
|
|
7
|
+
PassWord: string;
|
|
8
|
+
IsOpen: boolean;
|
|
9
|
+
private _conn;
|
|
10
|
+
private _database;
|
|
11
|
+
constructor(host: string, port: number, dababase: string, user: string, pass: string);
|
|
12
|
+
AsPostgres(): PGDBConnection;
|
|
13
|
+
OpenAsync(): Promise<void>;
|
|
14
|
+
QueryAsync(query: string): Promise<any>;
|
|
15
|
+
CloseAsync(): Promise<void>;
|
|
16
|
+
ExecuteNonQueryAsync(query: string): Promise<void>;
|
|
17
|
+
ExecuteAsync(query: string): Promise<any>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=PGDBConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PGDBConnection.d.ts","sourceRoot":"","sources":["../../../src/implementations/PGDBConnection.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,kBAAkB,EAAC,MAAM,YAAY,CAAC;AAE9C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,kBAAkB;IAEnD,QAAQ,EAAG,MAAM,CAAC;IAClB,IAAI,EAAG,MAAM,CAAC;IACd,YAAY,EAAG,MAAM,CAAC;IACtB,QAAQ,EAAG,MAAM,CAAC;IAClB,QAAQ,EAAG,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,SAAS,CAAW;gBAEhB,IAAI,EAAG,MAAM,EAAE,IAAI,EAAG,MAAM,EAAE,QAAQ,EAAG,MAAM,EAAE,IAAI,EAAG,MAAM,EAAE,IAAI,EAAG,MAAM;IAYlF,UAAU,IAAK,cAAc;IAM7B,SAAS,IAAK,OAAO,CAAC,IAAI,CAAC;IAiC3B,UAAU,CAAC,KAAK,EAAG,MAAM,GAAI,OAAO,CAAC,GAAG,CAAC;IAiBzC,UAAU;IAoBJ,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBlD,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAczD"}
|