tspace-mysql 1.5.4 → 1.5.5
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.
|
@@ -26,6 +26,7 @@ const utils_1 = require("../utils");
|
|
|
26
26
|
const constants_1 = require("../constants");
|
|
27
27
|
const DB_1 = require("./DB");
|
|
28
28
|
const connection_1 = require("../connection");
|
|
29
|
+
const State_1 = require("./Handlers/State");
|
|
29
30
|
class Builder extends AbstractBuilder_1.AbstractBuilder {
|
|
30
31
|
constructor() {
|
|
31
32
|
super();
|
|
@@ -3597,6 +3598,7 @@ class Builder extends AbstractBuilder_1.AbstractBuilder {
|
|
|
3597
3598
|
}
|
|
3598
3599
|
};
|
|
3599
3600
|
})();
|
|
3601
|
+
this.$state = new State_1.StateHandler('default');
|
|
3600
3602
|
this.$logger = (() => {
|
|
3601
3603
|
let logger = [];
|
|
3602
3604
|
return {
|
|
@@ -1,7 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StateHandler = void 0;
|
|
4
|
-
const STATE_DEFAULT = {
|
|
4
|
+
const STATE_DEFAULT = {
|
|
5
|
+
PRIMARY_KEY: 'id',
|
|
6
|
+
VOID: false,
|
|
7
|
+
RESULT: null,
|
|
8
|
+
DISTINCT: false,
|
|
9
|
+
PLUCK: '',
|
|
10
|
+
SAVE: '',
|
|
11
|
+
DELETE: '',
|
|
12
|
+
UPDATE: '',
|
|
13
|
+
INSERT: '',
|
|
14
|
+
SELECT: [],
|
|
15
|
+
ONLY: [],
|
|
16
|
+
EXCEPTS: [],
|
|
17
|
+
CHUNK: 0,
|
|
18
|
+
COUNT: '',
|
|
19
|
+
FROM: 'FROM',
|
|
20
|
+
JOIN: [],
|
|
21
|
+
WHERE: [],
|
|
22
|
+
GROUP_BY: [],
|
|
23
|
+
ORDER_BY: [],
|
|
24
|
+
LIMIT: '',
|
|
25
|
+
OFFSET: '',
|
|
26
|
+
HAVING: '',
|
|
27
|
+
TABLE_NAME: '',
|
|
28
|
+
UUID_CUSTOM: '',
|
|
29
|
+
HIDDEN: [],
|
|
30
|
+
DEBUG: false,
|
|
31
|
+
UUID: false,
|
|
32
|
+
PAGE: 1,
|
|
33
|
+
PER_PAGE: 1,
|
|
34
|
+
HOOKS: [],
|
|
35
|
+
RETURN_TYPE: null
|
|
36
|
+
};
|
|
5
37
|
const STATE_DB = {
|
|
6
38
|
PRIMARY_KEY: 'id',
|
|
7
39
|
VOID: false,
|