@riao/dbal 1.1.3 → 3.0.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.
- package/README.md +5 -1
- package/builder/builder.d.ts +1 -46
- package/builder/builder.js +1 -125
- package/builder/builder.js.map +1 -1
- package/builder/index.d.ts +1 -0
- package/builder/index.js +3 -1
- package/builder/index.js.map +1 -1
- package/builder/sql-builder.d.ts +40 -0
- package/builder/sql-builder.js +114 -0
- package/builder/sql-builder.js.map +1 -0
- package/builder/statement-builder.d.ts +10 -0
- package/builder/statement-builder.js +24 -0
- package/builder/statement-builder.js.map +1 -0
- package/column/column-options.d.ts +1 -1
- package/comparison/comparison-aliases.d.ts +10 -0
- package/comparison/comparison-aliases.js +41 -0
- package/comparison/comparison-aliases.js.map +1 -0
- package/comparison/comparison-token.d.ts +17 -0
- package/comparison/comparison-token.js +16 -0
- package/comparison/comparison-token.js.map +1 -0
- package/comparison/comparison.d.ts +13 -0
- package/comparison/comparison.js +72 -0
- package/comparison/comparison.js.map +1 -0
- package/comparison/index.d.ts +4 -0
- package/comparison/index.js +25 -0
- package/comparison/index.js.map +1 -0
- package/comparison/is-comparison-token.d.ts +2 -0
- package/comparison/is-comparison-token.js +9 -0
- package/comparison/is-comparison-token.js.map +1 -0
- package/database/database.d.ts +0 -6
- package/database/database.js +1 -8
- package/database/database.js.map +1 -1
- package/ddl/ddl-builder.d.ts +7 -2
- package/ddl/ddl-builder.js +105 -91
- package/ddl/ddl-builder.js.map +1 -1
- package/ddl/ddl-repository.js +15 -14
- package/ddl/ddl-repository.js.map +1 -1
- package/dml/delete.d.ts +2 -2
- package/dml/group-by.d.ts +4 -0
- package/dml/group-by.js +3 -0
- package/dml/group-by.js.map +1 -0
- package/dml/index.d.ts +2 -2
- package/dml/index.js +2 -2
- package/dml/index.js.map +1 -1
- package/dml/insert.d.ts +7 -4
- package/dml/join.d.ts +3 -3
- package/dml/query-builder.d.ts +41 -20
- package/dml/query-builder.js +301 -172
- package/dml/query-builder.js.map +1 -1
- package/dml/query-repository.d.ts +7 -1
- package/dml/query-repository.js +66 -13
- package/dml/query-repository.js.map +1 -1
- package/dml/select.d.ts +9 -6
- package/dml/subquery.d.ts +5 -0
- package/dml/subquery.js +11 -0
- package/dml/subquery.js.map +1 -0
- package/dml/update.d.ts +2 -2
- package/expression/expression-token.d.ts +9 -0
- package/expression/expression-token.js +11 -0
- package/expression/expression-token.js.map +1 -0
- package/expression/expression.d.ts +6 -0
- package/expression/expression.js +3 -0
- package/expression/expression.js.map +1 -0
- package/expression/identifier.d.ts +7 -0
- package/expression/identifier.js +16 -0
- package/expression/identifier.js.map +1 -0
- package/expression/index.d.ts +5 -0
- package/expression/index.js +24 -0
- package/expression/index.js.map +1 -0
- package/expression/is-expression-token.d.ts +2 -0
- package/expression/is-expression-token.js +8 -0
- package/expression/is-expression-token.js.map +1 -0
- package/expression/key-val-expression.d.ts +7 -0
- package/expression/key-val-expression.js +3 -0
- package/expression/key-val-expression.js.map +1 -0
- package/expression/literal.d.ts +2 -0
- package/expression/literal.js +3 -0
- package/expression/literal.js.map +1 -0
- package/expression/logical.d.ts +18 -0
- package/expression/logical.js +31 -0
- package/expression/logical.js.map +1 -0
- package/expression/simple-expression.d.ts +5 -0
- package/expression/simple-expression.js +3 -0
- package/expression/simple-expression.js.map +1 -0
- package/functions/function-aliases.d.ts +3 -0
- package/functions/function-aliases.js +13 -0
- package/functions/function-aliases.js.map +1 -0
- package/functions/{function-interface.d.ts → function-token.d.ts} +8 -7
- package/functions/{function-interface.js → function-token.js} +3 -2
- package/functions/function-token.js.map +1 -0
- package/functions/functions.d.ts +3 -2
- package/functions/functions.js +15 -4
- package/functions/functions.js.map +1 -1
- package/functions/index.d.ts +4 -1
- package/functions/index.js +6 -1
- package/functions/index.js.map +1 -1
- package/functions/is-database-function.d.ts +8 -0
- package/functions/is-database-function.js +15 -0
- package/functions/is-database-function.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/migration/create-migration-table.js +2 -1
- package/migration/create-migration-table.js.map +1 -1
- package/package.json +1 -1
- package/repository/repository-options.d.ts +0 -2
- package/repository/repository.d.ts +12 -3
- package/repository/repository.js +32 -1
- package/repository/repository.js.map +1 -1
- package/seed/auto-seed.js +16 -16
- package/seed/auto-seed.js.map +1 -1
- package/seed/create-seed-table.js +2 -1
- package/seed/create-seed-table.js.map +1 -1
- package/tokens/index.d.ts +1 -0
- package/tokens/index.js +6 -0
- package/tokens/index.js.map +1 -0
- package/dml/column-name.d.ts +0 -3
- package/dml/column-name.js +0 -12
- package/dml/column-name.js.map +0 -1
- package/dml/where.d.ts +0 -26
- package/dml/where.js +0 -67
- package/dml/where.js.map +0 -1
- package/functions/function-interface.js.map +0 -1
package/README.md
CHANGED
package/builder/builder.d.ts
CHANGED
|
@@ -1,49 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DatabaseQueryOptions } from '../database/driver-query';
|
|
1
|
+
import { DatabaseQueryOptions } from '../database';
|
|
3
2
|
export declare abstract class Builder {
|
|
4
|
-
protected sql: string;
|
|
5
|
-
protected params: any[];
|
|
6
|
-
protected operators: {
|
|
7
|
-
closeParens: string;
|
|
8
|
-
openParens: string;
|
|
9
|
-
equals: string;
|
|
10
|
-
like: string;
|
|
11
|
-
notEqual: string;
|
|
12
|
-
negate: string;
|
|
13
|
-
lt: string;
|
|
14
|
-
lte: string;
|
|
15
|
-
gt: string;
|
|
16
|
-
gte: string;
|
|
17
|
-
and: string;
|
|
18
|
-
or: string;
|
|
19
|
-
null: string;
|
|
20
|
-
is: string;
|
|
21
|
-
in: string;
|
|
22
|
-
openEnclosure: string;
|
|
23
|
-
closeEnclosure: string;
|
|
24
|
-
};
|
|
25
|
-
commaSeparate(strings: string[]): this;
|
|
26
|
-
openParens(): this;
|
|
27
|
-
closeParens(): this;
|
|
28
|
-
trimEnd(s: string): this;
|
|
29
3
|
toDatabaseQuery(): DatabaseQueryOptions;
|
|
30
|
-
encloseString(str: string): string;
|
|
31
|
-
getEnclosedName(str: string): string;
|
|
32
|
-
tableName(name: string): this;
|
|
33
|
-
columnName(name: string): this;
|
|
34
|
-
appendPlaceholder(): this;
|
|
35
|
-
placeholder(value: any): this;
|
|
36
|
-
/**
|
|
37
|
-
* Check if a value is a database function token
|
|
38
|
-
*
|
|
39
|
-
* @param fn Value to check
|
|
40
|
-
* @returns Returns true if the value is a database function
|
|
41
|
-
*/
|
|
42
|
-
isDatabaseFunction(fn: any): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Append a database function the query
|
|
45
|
-
*
|
|
46
|
-
* @param fn Database function token
|
|
47
|
-
*/
|
|
48
|
-
databaseFunction(fn: DatabaseFunctionToken): void;
|
|
49
4
|
}
|
package/builder/builder.js
CHANGED
|
@@ -2,132 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Builder = void 0;
|
|
4
4
|
class Builder {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.sql = '';
|
|
7
|
-
this.params = [];
|
|
8
|
-
this.operators = {
|
|
9
|
-
closeParens: ')',
|
|
10
|
-
openParens: '(',
|
|
11
|
-
equals: '=',
|
|
12
|
-
like: 'LIKE',
|
|
13
|
-
notEqual: '!=',
|
|
14
|
-
negate: '!',
|
|
15
|
-
lt: '<',
|
|
16
|
-
lte: '<=',
|
|
17
|
-
gt: '>',
|
|
18
|
-
gte: '>=',
|
|
19
|
-
and: 'AND',
|
|
20
|
-
or: 'OR',
|
|
21
|
-
null: 'NULL',
|
|
22
|
-
is: 'IS',
|
|
23
|
-
in: 'IN',
|
|
24
|
-
openEnclosure: '"',
|
|
25
|
-
closeEnclosure: '"',
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
commaSeparate(strings) {
|
|
29
|
-
this.sql += strings.join(', ');
|
|
30
|
-
return this;
|
|
31
|
-
}
|
|
32
|
-
openParens() {
|
|
33
|
-
this.sql += this.operators.openParens;
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
closeParens() {
|
|
37
|
-
this.sql = this.sql.trimEnd();
|
|
38
|
-
this.sql += this.operators.closeParens + ' ';
|
|
39
|
-
return this;
|
|
40
|
-
}
|
|
41
|
-
trimEnd(s) {
|
|
42
|
-
s = s.trimEnd();
|
|
43
|
-
this.sql = this.sql.trimEnd();
|
|
44
|
-
this.sql = this.sql.substring(0, this.sql.length - s.length);
|
|
45
|
-
return this;
|
|
46
|
-
}
|
|
47
5
|
toDatabaseQuery() {
|
|
48
|
-
|
|
49
|
-
sql: this.sql.trim(),
|
|
50
|
-
params: this.params,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
encloseString(str) {
|
|
54
|
-
if (!str) {
|
|
55
|
-
return str;
|
|
56
|
-
}
|
|
57
|
-
return (this.operators.openEnclosure + str + this.operators.closeEnclosure);
|
|
58
|
-
}
|
|
59
|
-
getEnclosedName(str) {
|
|
60
|
-
if (str.includes('.')) {
|
|
61
|
-
return str
|
|
62
|
-
.split('.')
|
|
63
|
-
.map((part) => this.encloseString(part))
|
|
64
|
-
.join('.');
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return this.encloseString(str);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
tableName(name) {
|
|
71
|
-
this.sql += this.getEnclosedName(name);
|
|
72
|
-
return this;
|
|
73
|
-
}
|
|
74
|
-
columnName(name) {
|
|
75
|
-
this.sql += this.getEnclosedName(name);
|
|
76
|
-
return this;
|
|
77
|
-
}
|
|
78
|
-
// ------------------------------------------------------------------------
|
|
79
|
-
// General
|
|
80
|
-
// ------------------------------------------------------------------------
|
|
81
|
-
appendPlaceholder() {
|
|
82
|
-
this.sql += '? ';
|
|
83
|
-
return this;
|
|
84
|
-
}
|
|
85
|
-
placeholder(value) {
|
|
86
|
-
if (value === null) {
|
|
87
|
-
this.appendPlaceholder();
|
|
88
|
-
this.params.push(value);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof value === 'object' && 'riao_column' in value) {
|
|
91
|
-
this.columnName(value.riao_column);
|
|
92
|
-
}
|
|
93
|
-
else if (this.isDatabaseFunction(value)) {
|
|
94
|
-
this.databaseFunction(value);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
this.appendPlaceholder();
|
|
98
|
-
this.params.push(value);
|
|
99
|
-
}
|
|
100
|
-
return this;
|
|
101
|
-
}
|
|
102
|
-
// ------------------------------------------------------------------------
|
|
103
|
-
// Database Functions
|
|
104
|
-
// ------------------------------------------------------------------------
|
|
105
|
-
/**
|
|
106
|
-
* Check if a value is a database function token
|
|
107
|
-
*
|
|
108
|
-
* @param fn Value to check
|
|
109
|
-
* @returns Returns true if the value is a database function
|
|
110
|
-
*/
|
|
111
|
-
isDatabaseFunction(fn) {
|
|
112
|
-
return typeof fn === 'object' && 'riao_dbfn' in fn;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Append a database function the query
|
|
116
|
-
*
|
|
117
|
-
* @param fn Database function token
|
|
118
|
-
*/
|
|
119
|
-
databaseFunction(fn) {
|
|
120
|
-
this.sql += fn.sql;
|
|
121
|
-
if (Array.isArray(fn.params)) {
|
|
122
|
-
this.openParens();
|
|
123
|
-
for (const param of fn.params) {
|
|
124
|
-
this.placeholder(param);
|
|
125
|
-
this.sql += ',';
|
|
126
|
-
this.trimEnd(',');
|
|
127
|
-
}
|
|
128
|
-
this.closeParens();
|
|
129
|
-
}
|
|
130
|
-
this.trimEnd(' ');
|
|
6
|
+
throw new Error('Must override toDatabaseQuery()');
|
|
131
7
|
}
|
|
132
8
|
}
|
|
133
9
|
exports.Builder = Builder;
|
package/builder/builder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../src/builder/builder.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../src/builder/builder.ts"],"names":[],"mappings":";;;AAEA,MAAsB,OAAO;IACrB,eAAe;QACrB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACpD,CAAC;CACD;AAJD,0BAIC"}
|
package/builder/index.d.ts
CHANGED
package/builder/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Builder = void 0;
|
|
3
|
+
exports.SqlBuilder = exports.Builder = void 0;
|
|
4
4
|
var builder_1 = require("./builder");
|
|
5
5
|
Object.defineProperty(exports, "Builder", { enumerable: true, get: function () { return builder_1.Builder; } });
|
|
6
|
+
var sql_builder_1 = require("./sql-builder");
|
|
7
|
+
Object.defineProperty(exports, "SqlBuilder", { enumerable: true, get: function () { return sql_builder_1.SqlBuilder; } });
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
package/builder/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builder/index.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builder/index.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DatabaseQueryOptions } from '../database/driver-query';
|
|
2
|
+
import { Builder } from './builder';
|
|
3
|
+
export declare class SqlBuilder extends Builder {
|
|
4
|
+
protected sql: string;
|
|
5
|
+
protected params: any[];
|
|
6
|
+
operators: {
|
|
7
|
+
closeParens: string;
|
|
8
|
+
openParens: string;
|
|
9
|
+
equals: string;
|
|
10
|
+
like: string;
|
|
11
|
+
notEqual: string;
|
|
12
|
+
negate: string;
|
|
13
|
+
lt: string;
|
|
14
|
+
lte: string;
|
|
15
|
+
gt: string;
|
|
16
|
+
gte: string;
|
|
17
|
+
and: string;
|
|
18
|
+
or: string;
|
|
19
|
+
null: string;
|
|
20
|
+
is: string;
|
|
21
|
+
in: string;
|
|
22
|
+
between: string;
|
|
23
|
+
openEnclosure: string;
|
|
24
|
+
closeEnclosure: string;
|
|
25
|
+
};
|
|
26
|
+
toDatabaseQuery(): DatabaseQueryOptions;
|
|
27
|
+
append(str: string): this;
|
|
28
|
+
appendParams(params: any[]): void;
|
|
29
|
+
space(): this;
|
|
30
|
+
commaSeparate(strings: string[]): this;
|
|
31
|
+
openParens(): this;
|
|
32
|
+
closeParens(): this;
|
|
33
|
+
trimEnd(s?: string): this;
|
|
34
|
+
encloseString(str: string): string;
|
|
35
|
+
getEnclosedName(str: string): string;
|
|
36
|
+
tableName(name: string): this;
|
|
37
|
+
columnName(name: string): this;
|
|
38
|
+
appendPlaceholder(): this;
|
|
39
|
+
placeholder(value: any): this;
|
|
40
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SqlBuilder = void 0;
|
|
4
|
+
const builder_1 = require("./builder");
|
|
5
|
+
class SqlBuilder extends builder_1.Builder {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.sql = '';
|
|
9
|
+
this.params = [];
|
|
10
|
+
this.operators = {
|
|
11
|
+
closeParens: ')',
|
|
12
|
+
openParens: '(',
|
|
13
|
+
equals: '=',
|
|
14
|
+
like: 'LIKE',
|
|
15
|
+
notEqual: '!=',
|
|
16
|
+
negate: '!',
|
|
17
|
+
lt: '<',
|
|
18
|
+
lte: '<=',
|
|
19
|
+
gt: '>',
|
|
20
|
+
gte: '>=',
|
|
21
|
+
and: 'AND',
|
|
22
|
+
or: 'OR',
|
|
23
|
+
null: 'NULL',
|
|
24
|
+
is: 'IS',
|
|
25
|
+
in: 'IN',
|
|
26
|
+
between: 'BETWEEN',
|
|
27
|
+
openEnclosure: '"',
|
|
28
|
+
closeEnclosure: '"',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
toDatabaseQuery() {
|
|
32
|
+
return {
|
|
33
|
+
sql: this.sql.trim(),
|
|
34
|
+
params: this.params,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
// ------------------------------------------------------------------------
|
|
38
|
+
// SQL utility functions
|
|
39
|
+
// ------------------------------------------------------------------------
|
|
40
|
+
append(str) {
|
|
41
|
+
this.sql += str;
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
appendParams(params) {
|
|
45
|
+
this.params = this.params.concat(params);
|
|
46
|
+
}
|
|
47
|
+
space() {
|
|
48
|
+
this.sql += ' ';
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
commaSeparate(strings) {
|
|
52
|
+
this.sql += strings.join(', ');
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
openParens() {
|
|
56
|
+
this.sql += this.operators.openParens;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
closeParens() {
|
|
60
|
+
this.sql = this.sql.trimEnd();
|
|
61
|
+
this.sql += this.operators.closeParens + ' ';
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
trimEnd(s) {
|
|
65
|
+
this.sql = this.sql.trimEnd();
|
|
66
|
+
if (s) {
|
|
67
|
+
s = s.trimEnd();
|
|
68
|
+
this.sql = this.sql.substring(0, this.sql.length - s.length);
|
|
69
|
+
}
|
|
70
|
+
return this;
|
|
71
|
+
}
|
|
72
|
+
// ------------------------------------------------------------------------
|
|
73
|
+
// Column/Table reference enclosure
|
|
74
|
+
// ------------------------------------------------------------------------
|
|
75
|
+
encloseString(str) {
|
|
76
|
+
if (!str) {
|
|
77
|
+
return str;
|
|
78
|
+
}
|
|
79
|
+
return (this.operators.openEnclosure + str + this.operators.closeEnclosure);
|
|
80
|
+
}
|
|
81
|
+
getEnclosedName(str) {
|
|
82
|
+
if (str.includes('.')) {
|
|
83
|
+
return str
|
|
84
|
+
.split('.')
|
|
85
|
+
.map((part) => this.encloseString(part))
|
|
86
|
+
.join('.');
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return this.encloseString(str);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
tableName(name) {
|
|
93
|
+
this.sql += this.getEnclosedName(name);
|
|
94
|
+
return this;
|
|
95
|
+
}
|
|
96
|
+
columnName(name) {
|
|
97
|
+
this.sql += this.getEnclosedName(name);
|
|
98
|
+
return this;
|
|
99
|
+
}
|
|
100
|
+
// ------------------------------------------------------------------------
|
|
101
|
+
// Placeholders
|
|
102
|
+
// ------------------------------------------------------------------------
|
|
103
|
+
appendPlaceholder() {
|
|
104
|
+
this.sql += '? ';
|
|
105
|
+
return this;
|
|
106
|
+
}
|
|
107
|
+
placeholder(value) {
|
|
108
|
+
this.appendPlaceholder();
|
|
109
|
+
this.params.push(value);
|
|
110
|
+
return this;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.SqlBuilder = SqlBuilder;
|
|
114
|
+
//# sourceMappingURL=sql-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql-builder.js","sourceRoot":"","sources":["../../../src/builder/sql-builder.ts"],"names":[],"mappings":";;;AACA,uCAAoC;AAEpC,MAAa,UAAW,SAAQ,iBAAO;IAAvC;;QACW,QAAG,GAAG,EAAE,CAAC;QACT,WAAM,GAAU,EAAE,CAAC;QAEtB,cAAS,GAAG;YAClB,WAAW,EAAE,GAAG;YAChB,UAAU,EAAE,GAAG;YACf,MAAM,EAAE,GAAG;YACX,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,GAAG;YACX,EAAE,EAAE,GAAG;YACP,GAAG,EAAE,IAAI;YACT,EAAE,EAAE,GAAG;YACP,GAAG,EAAE,IAAI;YACT,GAAG,EAAE,KAAK;YACV,EAAE,EAAE,IAAI;YACR,IA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C5B,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAExB,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AAxID,gCAwIC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Builder } from './builder';
|
|
2
|
+
import { SqlBuilder } from './sql-builder';
|
|
3
|
+
import { DatabaseQueryOptions } from '../database';
|
|
4
|
+
export declare abstract class StatementBuilder extends Builder {
|
|
5
|
+
protected sql: SqlBuilder;
|
|
6
|
+
constructor();
|
|
7
|
+
protected getSqlType(): typeof SqlBuilder;
|
|
8
|
+
toDatabaseQuery(): DatabaseQueryOptions;
|
|
9
|
+
appendBuilder(builder: Builder): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatementBuilder = void 0;
|
|
4
|
+
const builder_1 = require("./builder");
|
|
5
|
+
const sql_builder_1 = require("./sql-builder");
|
|
6
|
+
class StatementBuilder extends builder_1.Builder {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.sql = new (this.getSqlType())();
|
|
10
|
+
}
|
|
11
|
+
getSqlType() {
|
|
12
|
+
return sql_builder_1.SqlBuilder;
|
|
13
|
+
}
|
|
14
|
+
toDatabaseQuery() {
|
|
15
|
+
return this.sql.toDatabaseQuery();
|
|
16
|
+
}
|
|
17
|
+
appendBuilder(builder) {
|
|
18
|
+
const q = builder.toDatabaseQuery();
|
|
19
|
+
this.sql.append(q.sql);
|
|
20
|
+
this.sql.appendParams(q.params);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.StatementBuilder = StatementBuilder;
|
|
24
|
+
//# sourceMappingURL=statement-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statement-builder.js","sourceRoot":"","sources":["../../../src/builder/statement-builder.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AACpC,+CAA2C;AAG3C,MAAsB,gBAAiB,SAAQ,iBAAO;IAGrD;QACC,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC;IACtC,CAAC;IAES,UAAU;QACnB,OAAO,wBAAU,CAAC;IACnB,CAAC;IAEM,eAAe;QACrB,OAAO,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC;IACnC,CAAC;IAEM,aAAa,CAAC,OAAgB;QACpC,MAAM,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;QACpC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;CACD;AAtBD,4CAsBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComparisonToken } from './comparison-token';
|
|
2
|
+
export declare function between(a: any, b: any): ComparisonToken;
|
|
3
|
+
export declare function equals(value: any): ComparisonToken;
|
|
4
|
+
export declare function notEqual(value: any): ComparisonToken;
|
|
5
|
+
export declare function gt(value: any): ComparisonToken;
|
|
6
|
+
export declare function gte(value: any): ComparisonToken;
|
|
7
|
+
export declare function inArray(value: any[]): ComparisonToken;
|
|
8
|
+
export declare function like(value: any): ComparisonToken;
|
|
9
|
+
export declare function lt(value: any): ComparisonToken;
|
|
10
|
+
export declare function lte(value: any): ComparisonToken;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lte = exports.lt = exports.like = exports.inArray = exports.gte = exports.gt = exports.notEqual = exports.equals = exports.between = void 0;
|
|
4
|
+
const comparison_1 = require("./comparison");
|
|
5
|
+
function between(a, b) {
|
|
6
|
+
return comparison_1.Comparison.between(a, b);
|
|
7
|
+
}
|
|
8
|
+
exports.between = between;
|
|
9
|
+
function equals(value) {
|
|
10
|
+
return comparison_1.Comparison.equals(value);
|
|
11
|
+
}
|
|
12
|
+
exports.equals = equals;
|
|
13
|
+
function notEqual(value) {
|
|
14
|
+
return comparison_1.Comparison.notEqual(value);
|
|
15
|
+
}
|
|
16
|
+
exports.notEqual = notEqual;
|
|
17
|
+
function gt(value) {
|
|
18
|
+
return comparison_1.Comparison.gt(value);
|
|
19
|
+
}
|
|
20
|
+
exports.gt = gt;
|
|
21
|
+
function gte(value) {
|
|
22
|
+
return comparison_1.Comparison.gte(value);
|
|
23
|
+
}
|
|
24
|
+
exports.gte = gte;
|
|
25
|
+
function inArray(value) {
|
|
26
|
+
return comparison_1.Comparison.inArray(value);
|
|
27
|
+
}
|
|
28
|
+
exports.inArray = inArray;
|
|
29
|
+
function like(value) {
|
|
30
|
+
return comparison_1.Comparison.like(value);
|
|
31
|
+
}
|
|
32
|
+
exports.like = like;
|
|
33
|
+
function lt(value) {
|
|
34
|
+
return comparison_1.Comparison.lt(value);
|
|
35
|
+
}
|
|
36
|
+
exports.lt = lt;
|
|
37
|
+
function lte(value) {
|
|
38
|
+
return comparison_1.Comparison.lte(value);
|
|
39
|
+
}
|
|
40
|
+
exports.lte = lte;
|
|
41
|
+
//# sourceMappingURL=comparison-aliases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparison-aliases.js","sourceRoot":"","sources":["../../../src/comparison/comparison-aliases.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE1C,SAAgB,OAAO,CAAC,CAAM,EAAE,CAAM;IACrC,OAAO,uBAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACjC,CAAC;AAFD,0BAEC;AAED,SAAgB,MAAM,CAAC,KAAU;IAChC,OAAO,uBAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC;AAFD,wBAEC;AAED,SAAgB,QAAQ,CAAC,KAAU;IAClC,OAAO,uBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC;AAFD,4BAEC;AAED,SAAgB,EAAE,CAAC,KAAU;IAC5B,OAAO,uBAAU,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAFD,gBAEC;AAED,SAAgB,GAAG,CAAC,KAAU;IAC7B,OAAO,uBAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAFD,kBAEC;AAED,SAAgB,OAAO,CAAC,KAAY;IACnC,OAAO,uBAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC;AAFD,0BAEC;AAED,SAAgB,IAAI,CAAC,KAAU;IAC9B,OAAO,uBAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC;AAFD,oBAEC;AAED,SAAgB,EAAE,CAAC,KAAU;IAC5B,OAAO,uBAAU,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAFD,gBAEC;AAED,SAAgB,GAAG,CAAC,KAAU;IAC7B,OAAO,uBAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAFD,kBAEC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ExpressionToken } from '../expression/expression-token';
|
|
2
|
+
export declare enum ComparisonOperator {
|
|
3
|
+
EQUALS = 0,
|
|
4
|
+
NOT_EQUAL = 1,
|
|
5
|
+
LIKE = 2,
|
|
6
|
+
LT = 3,
|
|
7
|
+
LTE = 4,
|
|
8
|
+
GT = 5,
|
|
9
|
+
GTE = 6,
|
|
10
|
+
IN_ARRAY = 7,
|
|
11
|
+
BETWEEN = 8
|
|
12
|
+
}
|
|
13
|
+
export interface ComparisonInterface {
|
|
14
|
+
op: ComparisonOperator;
|
|
15
|
+
value: any;
|
|
16
|
+
}
|
|
17
|
+
export type ComparisonToken = ExpressionToken & ComparisonInterface;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComparisonOperator = void 0;
|
|
4
|
+
var ComparisonOperator;
|
|
5
|
+
(function (ComparisonOperator) {
|
|
6
|
+
ComparisonOperator[ComparisonOperator["EQUALS"] = 0] = "EQUALS";
|
|
7
|
+
ComparisonOperator[ComparisonOperator["NOT_EQUAL"] = 1] = "NOT_EQUAL";
|
|
8
|
+
ComparisonOperator[ComparisonOperator["LIKE"] = 2] = "LIKE";
|
|
9
|
+
ComparisonOperator[ComparisonOperator["LT"] = 3] = "LT";
|
|
10
|
+
ComparisonOperator[ComparisonOperator["LTE"] = 4] = "LTE";
|
|
11
|
+
ComparisonOperator[ComparisonOperator["GT"] = 5] = "GT";
|
|
12
|
+
ComparisonOperator[ComparisonOperator["GTE"] = 6] = "GTE";
|
|
13
|
+
ComparisonOperator[ComparisonOperator["IN_ARRAY"] = 7] = "IN_ARRAY";
|
|
14
|
+
ComparisonOperator[ComparisonOperator["BETWEEN"] = 8] = "BETWEEN";
|
|
15
|
+
})(ComparisonOperator = exports.ComparisonOperator || (exports.ComparisonOperator = {}));
|
|
16
|
+
//# sourceMappingURL=comparison-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparison-token.js","sourceRoot":"","sources":["../../../src/comparison/comparison-token.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC7B,+DAAM,CAAA;IACN,qEAAS,CAAA;IACT,2DAAI,CAAA;IACJ,uDAAE,CAAA;IACF,yDAAG,CAAA;IACH,uDAAE,CAAA;IACF,yDAAG,CAAA;IACH,mEAAQ,CAAA;IACR,iEAAO,CAAA;AACR,CAAC,EAVW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAU7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Expression } from '../expression';
|
|
2
|
+
import { ComparisonToken } from './comparison-token';
|
|
3
|
+
export declare class Comparison {
|
|
4
|
+
static between(a: Expression, b: Expression): ComparisonToken;
|
|
5
|
+
static equals(value: Expression): ComparisonToken;
|
|
6
|
+
static notEqual(value: Expression): ComparisonToken;
|
|
7
|
+
static gt(value: Expression): ComparisonToken;
|
|
8
|
+
static gte(value: Expression): ComparisonToken;
|
|
9
|
+
static inArray(values: Expression[]): ComparisonToken;
|
|
10
|
+
static like(value: Expression): ComparisonToken;
|
|
11
|
+
static lt(value: Expression): ComparisonToken;
|
|
12
|
+
static lte(value: Expression): ComparisonToken;
|
|
13
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Comparison = void 0;
|
|
4
|
+
const expression_token_1 = require("../expression/expression-token");
|
|
5
|
+
const comparison_token_1 = require("./comparison-token");
|
|
6
|
+
class Comparison {
|
|
7
|
+
static between(a, b) {
|
|
8
|
+
return {
|
|
9
|
+
riao_expr: expression_token_1.ExpressionTokenKey.COMPARISON,
|
|
10
|
+
op: comparison_token_1.ComparisonOperator.BETWEEN,
|
|
11
|
+
value: { a, b },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
static equals(value) {
|
|
15
|
+
return {
|
|
16
|
+
riao_expr: expression_token_1.ExpressionTokenKey.COMPARISON,
|
|
17
|
+
op: comparison_token_1.ComparisonOperator.EQUALS,
|
|
18
|
+
value,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static notEqual(value) {
|
|
22
|
+
return {
|
|
23
|
+
riao_expr: expression_token_1.ExpressionTokenKey.COMPARISON,
|
|
24
|
+
op: comparison_token_1.ComparisonOperator.NOT_EQUAL,
|
|
25
|
+
value,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static gt(value) {
|
|
29
|
+
return {
|
|
30
|
+
riao_expr: expression_token_1.ExpressionTokenKey.COMPARISON,
|
|
31
|
+
op: comparison_token_1.ComparisonOperator.GT,
|
|
32
|
+
value,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static gte(value) {
|
|
36
|
+
return {
|
|
37
|
+
riao_expr: expression_token_1.ExpressionTokenKey.COMPARISON,
|
|
38
|
+
op: comparison_token_1.ComparisonOperator.GTE,
|
|
39
|
+
value,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
static inArray(values) {
|
|
43
|
+
return {
|
|
44
|
+
riao_expr: expression_token_1.ExpressionTokenKey.COMPARISON,
|
|
45
|
+
op: comparison_token_1.ComparisonOperator.IN_ARRAY,
|
|
46
|
+
value: values,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
static like(value) {
|
|
50
|
+
return {
|
|
51
|
+
riao_expr: expression_token_1.ExpressionTokenKey.COMPARISON,
|
|
52
|
+
op: comparison_token_1.ComparisonOperator.LIKE,
|
|
53
|
+
value,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static lt(value) {
|
|
57
|
+
return {
|
|
58
|
+
riao_expr: expression_token_1.ExpressionTokenKey.COMPARISON,
|
|
59
|
+
op: comparison_token_1.ComparisonOperator.LT,
|
|
60
|
+
value,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
static lte(value) {
|
|
64
|
+
return {
|
|
65
|
+
riao_expr: expression_token_1.ExpressionTokenKey.COMPARISON,
|
|
66
|
+
op: comparison_token_1.ComparisonOperator.LTE,
|
|
67
|
+
value,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.Comparison = Comparison;
|
|
72
|
+
//# sourceMappingURL=comparison.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparison.js","sourceRoot":"","sources":["../../../src/comparison/comparison.ts"],"names":[],"mappings":";;;AACA,qEAAoE;AACpE,yDAAyE;AAEzE,MAAa,UAAU;IACf,MAAM,CAAC,OAAO,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AC,UAAU;YACxC,EAAE,EAAE,qCAAkB,CAAC,EAAE;YACzB,KAAK;SACL,CAAC;IACH,CAAC;IAEM,MAAM,CAAC,GAAG,CAAC,KAAiB;QAClC,OAAO;YACN,SAAS,EAAE,qCAAkB,CAAC,UAAU;YACxC,EAAE,EAAE,qCAAkB,CAAC,GAAG;YAC1B,KAAK;SACL,CAAC;IACH,CAAC;CACD;AAxED,gCAwEC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.isComparisonToken = exports.Comparison = exports.ComparisonOperator = void 0;
|
|
18
|
+
__exportStar(require("./comparison-aliases"), exports);
|
|
19
|
+
var comparison_token_1 = require("./comparison-token");
|
|
20
|
+
Object.defineProperty(exports, "ComparisonOperator", { enumerable: true, get: function () { return comparison_token_1.ComparisonOperator; } });
|
|
21
|
+
var comparison_1 = require("./comparison");
|
|
22
|
+
Object.defineProperty(exports, "Comparison", { enumerable: true, get: function () { return comparison_1.Comparison; } });
|
|
23
|
+
var is_comparison_token_1 = require("./is-comparison-token");
|
|
24
|
+
Object.defineProperty(exports, "isComparisonToken", { enumerable: true, get: function () { return is_comparison_token_1.isComparisonToken; } });
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/comparison/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAyE;AAAhE,sHAAA,kBAAkB,OAAA;AAC3B,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA"}
|