tspace-mysql 1.3.0 → 1.3.2

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 (56) hide show
  1. package/README.md +72 -14
  2. package/dist/cli/dump/db.d.ts +4 -4
  3. package/dist/cli/dump/db.js +25 -25
  4. package/dist/cli/generate/make.d.ts +4 -4
  5. package/dist/cli/generate/make.js +45 -45
  6. package/dist/cli/generate/model.d.ts +2 -2
  7. package/dist/cli/generate/model.js +6 -6
  8. package/dist/cli/index.d.ts +2 -2
  9. package/dist/cli/index.js +58 -58
  10. package/dist/cli/migrate/make.d.ts +4 -4
  11. package/dist/cli/migrate/make.js +30 -30
  12. package/dist/cli/models/make.d.ts +4 -4
  13. package/dist/cli/models/make.js +51 -51
  14. package/dist/cli/models/model.d.ts +2 -2
  15. package/dist/cli/models/model.js +20 -11
  16. package/dist/cli/query/index.d.ts +4 -4
  17. package/dist/cli/query/index.js +7 -7
  18. package/dist/cli/tables/make.d.ts +4 -4
  19. package/dist/cli/tables/make.js +26 -26
  20. package/dist/cli/tables/table.d.ts +2 -2
  21. package/dist/cli/tables/table.js +6 -6
  22. package/dist/lib/connection/index.d.ts +30 -30
  23. package/dist/lib/connection/index.js +144 -143
  24. package/dist/lib/connection/options.d.ts +15 -4
  25. package/dist/lib/connection/options.js +43 -42
  26. package/dist/lib/constants/index.d.ts +5 -8
  27. package/dist/lib/constants/index.js +162 -158
  28. package/dist/lib/index.d.ts +8 -8
  29. package/dist/lib/index.js +36 -36
  30. package/dist/lib/tspace/{AbstractDatabase.d.ts → AbstractBuilder.d.ts} +124 -116
  31. package/dist/lib/tspace/{AbstractDatabase.js → AbstractBuilder.js} +36 -34
  32. package/dist/lib/tspace/AbstractDB.d.ts +18 -18
  33. package/dist/lib/tspace/AbstractDB.js +11 -11
  34. package/dist/lib/tspace/AbstractModel.d.ts +43 -41
  35. package/dist/lib/tspace/AbstractModel.js +11 -11
  36. package/dist/lib/tspace/Blueprint.d.ts +136 -136
  37. package/dist/lib/tspace/Blueprint.js +228 -228
  38. package/dist/lib/tspace/{Database.d.ts → Builder.d.ts} +825 -706
  39. package/dist/lib/tspace/{Database.js → Builder.js} +2548 -2363
  40. package/dist/lib/tspace/DB.d.ts +152 -126
  41. package/dist/lib/tspace/DB.js +373 -264
  42. package/dist/lib/tspace/Interface.d.ts +110 -109
  43. package/dist/lib/tspace/Interface.js +2 -2
  44. package/dist/lib/tspace/Logger.d.ts +8 -8
  45. package/dist/lib/tspace/Logger.js +49 -49
  46. package/dist/lib/tspace/Model.d.ts +708 -609
  47. package/dist/lib/tspace/Model.js +2519 -2477
  48. package/dist/lib/tspace/ProxyHandler.d.ts +14 -14
  49. package/dist/lib/tspace/ProxyHandler.js +31 -31
  50. package/dist/lib/tspace/Schema.d.ts +8 -8
  51. package/dist/lib/tspace/Schema.js +45 -44
  52. package/dist/lib/tspace/index.d.ts +15 -15
  53. package/dist/lib/tspace/index.js +20 -20
  54. package/dist/lib/utils/index.d.ts +15 -15
  55. package/dist/lib/utils/index.js +155 -165
  56. package/package.json +2 -4
@@ -1,136 +1,136 @@
1
- declare class Blueprint {
2
- protected type: string;
3
- protected attrbuites: Array<string>;
4
- /**
5
- * Assign type 'int' in table
6
- * @return {this} this
7
- */
8
- int(): this;
9
- /**
10
- * Assign type 'TINYINT' in table
11
- * @param {number} number
12
- * @return {this} this
13
- */
14
- tinyInt(number?: number): this;
15
- /**
16
- * Assign type 'BIGINT' in table
17
- * @param {number} number [number = 10]
18
- * @return {this} this
19
- */
20
- bigInt(number?: number): this;
21
- /**
22
- * Assign type 'DOUBLE' in table
23
- * @param {number} length between 1-255
24
- * @param {number} decimal 0.000...n
25
- * @return {this} this
26
- */
27
- double(length?: number, decimal?: number): this;
28
- /**
29
- * Assign type 'FLOAT' in table
30
- * @param {number} length between 1-255
31
- * @param {number} decimal 0.000...n
32
- * @return {this} this
33
- */
34
- float(length?: number, decimal?: number): this;
35
- /**
36
- * Assign type 'VARCHAR' in table
37
- * @param {number} length [length = 100] length of string
38
- * @return {this} this
39
- */
40
- varchar(length?: number): this;
41
- /**
42
- * Assign type 'CHAR' in table
43
- * @param {number} length [length = 1] length of string
44
- * @return {this} this
45
- */
46
- char(length?: number): this;
47
- /**
48
- * Assign type 'LONGTEXT' in table
49
- * @return {this} this
50
- */
51
- longText(): this;
52
- /**
53
- * Assign type 'MEDIUMTEXT' in table
54
- * @param {number} length [length = 1] length of string
55
- * @return {this} this
56
- */
57
- mediumText(): this;
58
- /**
59
- * Assign type 'TINYTEXT' in table
60
- * @param {number} length [length = 1] length of string
61
- * @return {this} this
62
- */
63
- tinyText(): this;
64
- /**
65
- * Assign type 'TEXT' in table
66
- * @param {number} length [length = 1] length of string
67
- * @return {this} this
68
- */
69
- text(): this;
70
- /**
71
- * Assign type 'ENUM'
72
- * @param {...string} enums n1, n2, n3, ...n
73
- * @return {this} this
74
- */
75
- enum(...enums: Array<string>): this;
76
- /**
77
- * Assign type 'DATE' in table
78
- * @return {this} this
79
- */
80
- date(): this;
81
- /**
82
- * Assign type 'DATETIME' in table
83
- * @return {this} this
84
- */
85
- dateTime(): this;
86
- /**
87
- * Assign type 'TIMESTAMP' in table
88
- * @return {this} this
89
- */
90
- timestamp(): this;
91
- /**
92
- * Assign type 'UNSIGNED' in table
93
- * @return {this} this
94
- */
95
- unsigned(): this;
96
- /**
97
- * Assign type 'UNIQUE' in table
98
- * @return {this} this
99
- */
100
- unique(): this;
101
- /**
102
- * Assign type 'NULL' in table
103
- * @return {this} this
104
- */
105
- null(): this;
106
- /**
107
- * Assign type 'NOT NULL' in table
108
- * @return {this} this
109
- */
110
- notNull(): this;
111
- /**
112
- * Assign type 'PRIMARY KEY' in table
113
- * @return {this} this
114
- */
115
- primary(): this;
116
- /**
117
- * Assign attrbuites 'default' in table
118
- * @param {string | number} n default value
119
- * @return {this} this
120
- */
121
- default(n: string | number): this;
122
- /**
123
- * Assign attrbuites 'default currentTimestamp' in table
124
- * @return {this} this
125
- */
126
- currentTimestamp(): this;
127
- /**
128
- * Assign attrbuites 'autoIncrement' in table
129
- * @return {this} this
130
- */
131
- autoIncrement(): this;
132
- private _addAssignType;
133
- private _addAssignAttrbuite;
134
- }
135
- export { Blueprint };
136
- export default Blueprint;
1
+ declare class Blueprint {
2
+ protected type: string;
3
+ protected attrbuites: Array<string>;
4
+ /**
5
+ * Assign type 'int' in table
6
+ * @return {this} this
7
+ */
8
+ int(): this;
9
+ /**
10
+ * Assign type 'TINYINT' in table
11
+ * @param {number} number
12
+ * @return {this} this
13
+ */
14
+ tinyInt(number?: number): this;
15
+ /**
16
+ * Assign type 'BIGINT' in table
17
+ * @param {number} number [number = 10]
18
+ * @return {this} this
19
+ */
20
+ bigInt(number?: number): this;
21
+ /**
22
+ * Assign type 'DOUBLE' in table
23
+ * @param {number} length between 1-255
24
+ * @param {number} decimal 0.000...n
25
+ * @return {this} this
26
+ */
27
+ double(length?: number, decimal?: number): this;
28
+ /**
29
+ * Assign type 'FLOAT' in table
30
+ * @param {number} length between 1-255
31
+ * @param {number} decimal 0.000...n
32
+ * @return {this} this
33
+ */
34
+ float(length?: number, decimal?: number): this;
35
+ /**
36
+ * Assign type 'VARCHAR' in table
37
+ * @param {number} length [length = 100] length of string
38
+ * @return {this} this
39
+ */
40
+ varchar(length?: number): this;
41
+ /**
42
+ * Assign type 'CHAR' in table
43
+ * @param {number} length [length = 1] length of string
44
+ * @return {this} this
45
+ */
46
+ char(length?: number): this;
47
+ /**
48
+ * Assign type 'LONGTEXT' in table
49
+ * @return {this} this
50
+ */
51
+ longText(): this;
52
+ /**
53
+ * Assign type 'MEDIUMTEXT' in table
54
+ * @param {number} length [length = 1] length of string
55
+ * @return {this} this
56
+ */
57
+ mediumText(): this;
58
+ /**
59
+ * Assign type 'TINYTEXT' in table
60
+ * @param {number} length [length = 1] length of string
61
+ * @return {this} this
62
+ */
63
+ tinyText(): this;
64
+ /**
65
+ * Assign type 'TEXT' in table
66
+ * @param {number} length [length = 1] length of string
67
+ * @return {this} this
68
+ */
69
+ text(): this;
70
+ /**
71
+ * Assign type 'ENUM'
72
+ * @param {...string} enums n1, n2, n3, ...n
73
+ * @return {this} this
74
+ */
75
+ enum(...enums: Array<string>): this;
76
+ /**
77
+ * Assign type 'DATE' in table
78
+ * @return {this} this
79
+ */
80
+ date(): this;
81
+ /**
82
+ * Assign type 'DATETIME' in table
83
+ * @return {this} this
84
+ */
85
+ dateTime(): this;
86
+ /**
87
+ * Assign type 'TIMESTAMP' in table
88
+ * @return {this} this
89
+ */
90
+ timestamp(): this;
91
+ /**
92
+ * Assign type 'UNSIGNED' in table
93
+ * @return {this} this
94
+ */
95
+ unsigned(): this;
96
+ /**
97
+ * Assign type 'UNIQUE' in table
98
+ * @return {this} this
99
+ */
100
+ unique(): this;
101
+ /**
102
+ * Assign type 'NULL' in table
103
+ * @return {this} this
104
+ */
105
+ null(): this;
106
+ /**
107
+ * Assign type 'NOT NULL' in table
108
+ * @return {this} this
109
+ */
110
+ notNull(): this;
111
+ /**
112
+ * Assign type 'PRIMARY KEY' in table
113
+ * @return {this} this
114
+ */
115
+ primary(): this;
116
+ /**
117
+ * Assign attrbuites 'default' in table
118
+ * @param {string | number} n default value
119
+ * @return {this} this
120
+ */
121
+ default(n: string | number): this;
122
+ /**
123
+ * Assign attrbuites 'default currentTimestamp' in table
124
+ * @return {this} this
125
+ */
126
+ currentTimestamp(): this;
127
+ /**
128
+ * Assign attrbuites 'autoIncrement' in table
129
+ * @return {this} this
130
+ */
131
+ autoIncrement(): this;
132
+ private _addAssignType;
133
+ private _addAssignAttrbuite;
134
+ }
135
+ export { Blueprint };
136
+ export default Blueprint;