@l-v-yonsama/multi-platform-database-drivers 0.1.51 → 0.1.52
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.
|
@@ -11,5 +11,12 @@ export type Proposal = {
|
|
|
11
11
|
detail?: string;
|
|
12
12
|
desc?: string;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type ProposalParams = {
|
|
15
|
+
sql: string;
|
|
16
|
+
lastChar: string;
|
|
17
|
+
keyword: string;
|
|
18
|
+
parentWord?: string;
|
|
19
|
+
db?: DbDatabase;
|
|
20
|
+
};
|
|
21
|
+
export declare const getProposals: (params: ProposalParams) => Proposal[];
|
|
15
22
|
export declare const RESERVED_WORDS: string[];
|
|
@@ -9,70 +9,90 @@ var ProposalKind;
|
|
|
9
9
|
ProposalKind[ProposalKind["Column"] = 2] = "Column";
|
|
10
10
|
ProposalKind[ProposalKind["ReservedWord"] = 3] = "ReservedWord";
|
|
11
11
|
})(ProposalKind = exports.ProposalKind || (exports.ProposalKind = {}));
|
|
12
|
-
const getProposals = (
|
|
12
|
+
const getProposals = (params) => {
|
|
13
|
+
const { db, sql, lastChar, keyword, parentWord } = params;
|
|
13
14
|
const upperKeyword = keyword.toUpperCase();
|
|
14
15
|
const upperParentWord = parentWord === null || parentWord === void 0 ? void 0 : parentWord.toUpperCase();
|
|
15
16
|
let ast;
|
|
16
|
-
try {
|
|
17
|
-
[ast] = (0, pgsql_ast_parser_1.parse)(sql, { locationTracking: true });
|
|
18
|
-
}
|
|
19
|
-
catch (_) {
|
|
20
|
-
}
|
|
21
17
|
const retList = [];
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
|
|
18
|
+
try {
|
|
19
|
+
if (db) {
|
|
20
|
+
try {
|
|
21
|
+
[ast] = (0, pgsql_ast_parser_1.parse)(sql, { locationTracking: true });
|
|
22
|
+
}
|
|
23
|
+
catch (_) {
|
|
24
|
+
}
|
|
25
|
+
if (parentWord) {
|
|
26
|
+
let list = getProposalsByKeywordWithParent(db, ast, upperKeyword, upperParentWord, lastChar);
|
|
27
|
+
if (list.length === 0) {
|
|
28
|
+
list = getProposalsByKeyword(db, upperKeyword, lastChar);
|
|
29
|
+
}
|
|
30
|
+
retList.push(...list);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
if (keyword) {
|
|
34
|
+
const list = getProposalsByKeyword(db, upperKeyword, lastChar);
|
|
35
|
+
retList.push(...list);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
retList.push(...getAllProposals(db));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
25
41
|
}
|
|
26
|
-
|
|
27
|
-
|
|
42
|
+
if (lastChar !== '.' && !parentWord) {
|
|
43
|
+
exports.RESERVED_WORDS.filter((s) => s.startsWith(upperKeyword)).forEach((s) => {
|
|
44
|
+
retList.push({
|
|
45
|
+
label: s,
|
|
46
|
+
kind: ProposalKind.ReservedWord,
|
|
47
|
+
});
|
|
48
|
+
});
|
|
28
49
|
}
|
|
29
50
|
}
|
|
30
|
-
|
|
31
|
-
retList.push(...getAllProposals(db));
|
|
51
|
+
catch (_) {
|
|
32
52
|
}
|
|
33
|
-
exports.RESERVED_WORDS.filter((s) => s.startsWith(upperKeyword)).forEach((s) => {
|
|
34
|
-
retList.push({
|
|
35
|
-
label: s,
|
|
36
|
-
kind: ProposalKind.ReservedWord,
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
53
|
return retList;
|
|
40
54
|
};
|
|
41
55
|
exports.getProposals = getProposals;
|
|
56
|
+
const resolveAlias = (ast, alias) => {
|
|
57
|
+
if (!ast || !alias) {
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
60
|
+
if (ast.type === 'select') {
|
|
61
|
+
for (const tbl of ast.from) {
|
|
62
|
+
if (tbl.type === 'table') {
|
|
63
|
+
if (tbl.name.alias.toUpperCase() === alias) {
|
|
64
|
+
return tbl.name.name;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return undefined;
|
|
70
|
+
};
|
|
42
71
|
const matchKeyword = (list, keyword) => {
|
|
43
72
|
return list.some((it) => it.toUpperCase().startsWith(keyword));
|
|
44
73
|
};
|
|
45
|
-
const
|
|
46
|
-
var _a;
|
|
47
|
-
const detail = (schema.isDefault ? '' : schema.getName() + ' ') + ((_a = table.comment) !== null && _a !== void 0 ? _a : '');
|
|
48
|
-
return {
|
|
49
|
-
label: table.name,
|
|
50
|
-
kind: ProposalKind.Table,
|
|
51
|
-
detail,
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
const createColumnProposal = (table, column) => {
|
|
55
|
-
var _a, _b;
|
|
56
|
-
const detail = `${(_a = table.comment) !== null && _a !== void 0 ? _a : table.name}.${(_b = column.comment) !== null && _b !== void 0 ? _b : column.name}`;
|
|
57
|
-
return {
|
|
58
|
-
label: column.name,
|
|
59
|
-
kind: ProposalKind.Column,
|
|
60
|
-
detail,
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
const getProposalsByKeywordWithParent = (db, keyword, parentWord) => {
|
|
74
|
+
const getProposalsByKeywordWithParent = (db, ast, keyword, parentWord, lastChar) => {
|
|
64
75
|
var _a;
|
|
65
76
|
const retList = [];
|
|
66
77
|
const schema = db.getChildByName(parentWord);
|
|
67
|
-
schema
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
78
|
+
if (schema) {
|
|
79
|
+
schema.getChildren().forEach((table) => {
|
|
80
|
+
var _a;
|
|
81
|
+
const table_comment = (_a = table.comment) !== null && _a !== void 0 ? _a : '';
|
|
82
|
+
if (keyword === '' ||
|
|
83
|
+
matchKeyword([table.name, table_comment], keyword)) {
|
|
84
|
+
retList.push(createTableProposal(schema, table));
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
74
88
|
const defaultSchema = db.getSchema({ isDefault: true });
|
|
75
|
-
|
|
89
|
+
let table = defaultSchema.getChildByName(parentWord);
|
|
90
|
+
if (!table) {
|
|
91
|
+
const resolvedName = resolveAlias(ast, parentWord);
|
|
92
|
+
if (resolvedName) {
|
|
93
|
+
table = defaultSchema.getChildByName(resolvedName.toUpperCase());
|
|
94
|
+
}
|
|
95
|
+
}
|
|
76
96
|
if (table) {
|
|
77
97
|
const table_comment = (_a = table.comment) !== null && _a !== void 0 ? _a : '';
|
|
78
98
|
if (matchKeyword([table.name, table_comment], keyword)) {
|
|
@@ -81,16 +101,28 @@ const getProposalsByKeywordWithParent = (db, keyword, parentWord) => {
|
|
|
81
101
|
table.getChildren().forEach((column) => {
|
|
82
102
|
var _a;
|
|
83
103
|
const columnComment = (_a = column.comment) !== null && _a !== void 0 ? _a : '';
|
|
84
|
-
if (
|
|
104
|
+
if (keyword === '' ||
|
|
105
|
+
matchKeyword([column.name, columnComment], keyword)) {
|
|
85
106
|
retList.push(createColumnProposal(table, column));
|
|
86
107
|
}
|
|
87
108
|
});
|
|
88
109
|
}
|
|
89
110
|
return retList;
|
|
90
111
|
};
|
|
91
|
-
const getProposalsByKeyword = (db, keyword) => {
|
|
112
|
+
const getProposalsByKeyword = (db, keyword, lastChar) => {
|
|
92
113
|
const retList = [];
|
|
93
114
|
const schema = db.getSchema({ isDefault: true });
|
|
115
|
+
if (lastChar === ' ') {
|
|
116
|
+
if (['INTO', 'UPDATE', 'FROM'].includes(keyword)) {
|
|
117
|
+
schema.getChildren().forEach((table) => {
|
|
118
|
+
retList.push(createTableProposal(schema, table));
|
|
119
|
+
});
|
|
120
|
+
return retList;
|
|
121
|
+
}
|
|
122
|
+
if ('DELETE' === keyword) {
|
|
123
|
+
retList.push(createReservedWordProposal('FROM'));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
94
126
|
schema.getChildren().forEach((table) => {
|
|
95
127
|
var _a;
|
|
96
128
|
const table_comment = (_a = table.comment) !== null && _a !== void 0 ? _a : '';
|
|
@@ -118,6 +150,33 @@ const getAllProposals = (db) => {
|
|
|
118
150
|
});
|
|
119
151
|
return retList;
|
|
120
152
|
};
|
|
153
|
+
const createTableProposal = (schema, table) => {
|
|
154
|
+
var _a;
|
|
155
|
+
let detail = (_a = table.comment) !== null && _a !== void 0 ? _a : '';
|
|
156
|
+
if ((schema === null || schema === void 0 ? void 0 : schema.isDefault) === false) {
|
|
157
|
+
detail = schema.getName() + ' ' + detail;
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
label: table.name,
|
|
161
|
+
kind: ProposalKind.Table,
|
|
162
|
+
detail,
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
const createColumnProposal = (table, column) => {
|
|
166
|
+
var _a, _b;
|
|
167
|
+
const detail = `${(_a = table.comment) !== null && _a !== void 0 ? _a : table.name}.${(_b = column.comment) !== null && _b !== void 0 ? _b : column.name}`;
|
|
168
|
+
return {
|
|
169
|
+
label: column.name,
|
|
170
|
+
kind: ProposalKind.Column,
|
|
171
|
+
detail,
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
const createReservedWordProposal = (word) => {
|
|
175
|
+
return {
|
|
176
|
+
label: word,
|
|
177
|
+
kind: ProposalKind.ReservedWord,
|
|
178
|
+
};
|
|
179
|
+
};
|
|
121
180
|
exports.RESERVED_WORDS = [
|
|
122
181
|
'ACCESSIBLE',
|
|
123
182
|
'ADD',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SQLHelper.js","sourceRoot":"","sources":["../../../src/helpers/SQLHelper.ts"],"names":[],"mappings":";;;AAEA,uDAAoD;AAEpD,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,mDAAU,CAAA;IACV,iDAAS,CAAA;IACT,mDAAU,CAAA;IACV,+DAAgB,CAAA;AAClB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;
|
|
1
|
+
{"version":3,"file":"SQLHelper.js","sourceRoot":"","sources":["../../../src/helpers/SQLHelper.ts"],"names":[],"mappings":";;;AAEA,uDA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AAS;IACT,WAAW;IACX,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,WAAW;IACX,YAAY;IACZ,MAAM;IACN,YAAY;IACZ,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;IACT,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,OAAO;IACP,QAAQ;IACR,SAAS;IACT,oBAAoB;IACpB,QAAQ;IACR,WAAW;IACX,WAAW;IACX,KAAK;IACL,MAAM;IACN,UAAU;IACV,SAAS;IACT,UAAU;IACV,KAAK;IACL,cAAc;IACd,UAAU;IACV,YAAY;IACZ,gBAAgB;IAChB,qBAAqB;IACrB,kBAAkB;IAClB,KAAK;IACL,UAAU;IACV,eAAe;IACf,OAAO;IACP,YAAY;IACZ,MAAM;IACN,UAAU;IACV,SAAS;IACT,UAAU;IACV,IAAI;IACJ,UAAU;IACV,SAAS;IACT,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,OAAO;IACP,KAAK;IACL,OAAO;IACP,UAAU;IACV,UAAU;IACV,eAAe;IACf,QAAQ;IACR,WAAW;IACX,SAAS;IACT,cAAc;IACd,SAAS;IACT,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,KAAK;IACL,YAAY;IACZ,UAAU;CACX,CAAC"}
|
package/built/src/index.d.ts
CHANGED
package/built/src/index.js
CHANGED
|
@@ -5,4 +5,5 @@ tslib_1.__exportStar(require("./drivers"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./resource"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./helpers"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./types"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./util"), exports);
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
package/built/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAC1B,qDAA2B;AAC3B,oDAA0B;AAC1B,kDAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAC1B,qDAA2B;AAC3B,oDAA0B;AAC1B,kDAAwB;AACxB,iDAAuB"}
|