@nongt/visql 0.9.0 → 0.10.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/dist/{PipelineEditor-C10lng6j.js → PipelineEditor-Ch_i6OAc.js} +310 -317
- package/dist/core.js +83 -80
- package/dist/explain.js +325 -134
- package/dist/index.js +91 -88
- package/dist/{issueLocation-BOSdd1JX.js → issueLocation-Y1iaP_Cs.js} +176 -174
- package/dist/mui.js +1 -1
- package/dist/{params-MMOdKWnW.js → params-kc6eNrpu.js} +501 -495
- package/dist/{schema-dP_ISylQ.js → schema-KDJ1rpG5.js} +333 -298
- package/dist/sql-import.js +1 -1
- package/dist/{sqlGen-B7-2-i9V.js → sqlGen-Crgheqys.js} +33 -33
- package/dist/types/core/existsMenu.d.ts +4 -3
- package/dist/types/core/pipelineFlow.d.ts +1 -1
- package/dist/types/core/schema.d.ts +51 -22
- package/dist/types/core-api.d.ts +1 -1
- package/dist/types/explain/explainQuery.d.ts +12 -6
- package/dist/types/explain/mySqlPlan.d.ts +4 -0
- package/dist/types/explain/planPlaces.d.ts +27 -0
- package/dist/types/explain/postgresPlan.d.ts +2 -10
- package/dist/types/explain/sqlServerPlan.d.ts +4 -0
- package/dist/types/explain/xml.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { D as f } from "./PipelineEditor-
|
|
2
|
-
import { P
|
|
3
|
-
import { D as R, E as I, M as k, b as C, f as O,
|
|
4
|
-
import { D as
|
|
5
|
-
import { c as
|
|
6
|
-
import { Q as
|
|
7
|
-
import { w as
|
|
8
|
-
import { D as
|
|
9
|
-
import { QUERY_FORMAT_VERSION as
|
|
1
|
+
import { D as f } from "./PipelineEditor-Ch_i6OAc.js";
|
|
2
|
+
import { P, f as v, a as B } from "./PipelineEditor-Ch_i6OAc.js";
|
|
3
|
+
import { D as R, E as I, M as k, b as C, f as O, a as q, c as H, h as G, i as Y, r as w, s as X, v as J } from "./schema-KDJ1rpG5.js";
|
|
4
|
+
import { D as j, M as V, a as z, b as K, d as Z, e as $, f as ee, g as ae, c as se, h as te, k as re, m as ne, q as oe, r as ie, i as de, s as ce, j as ue, o as le, l as me, n as fe, u as he } from "./params-kc6eNrpu.js";
|
|
5
|
+
import { c as Ee, f as Se, i as Te } from "./calendarDate-CYlr9TvX.js";
|
|
6
|
+
import { Q as Ae, l as Ne, S as _e, a as be, n as De, f as Ue, j as ye, m as Me, b as Qe, k as xe, r as Fe, c as Pe, g as ve, h as Be, i as Le, s as Re, d as Ie, e as ke, v as Ce } from "./issueLocation-Y1iaP_Cs.js";
|
|
7
|
+
import { w as h, a as p, b as E } from "./sqlGen-Crgheqys.js";
|
|
8
|
+
import { D as qe, c as He, S as Ge, s as Ye, u as we } from "./sqlGen-Crgheqys.js";
|
|
9
|
+
import { QUERY_FORMAT_VERSION as Je, QueryFormatError as We, addCondition as je, addGroupBy as Ve, addJoin as ze, addOrderBy as Ke, addSelectItem as Ze, expr as $e, loadQuery as ea, removeJoin as aa, requireBaseTable as sa, saveQuery as ta, setBaseTable as ra, setDistinct as na, setHaving as oa, setPaging as ia } from "./core.js";
|
|
10
10
|
import { D as S, N as T } from "./tokens-DV5rTGMj.js";
|
|
11
|
-
function
|
|
12
|
-
const a = { paths: [] }, t =
|
|
11
|
+
function b(n, s, e = {}) {
|
|
12
|
+
const a = { paths: [] }, t = h(a, () => e.parameterized ? p(n, s, e).sql : E(n, s, e));
|
|
13
13
|
let r = "";
|
|
14
14
|
const c = [], u = [];
|
|
15
15
|
for (let o = 0; o < t.length; o += 1) {
|
|
@@ -25,11 +25,11 @@ function D(n, s, e = {}) {
|
|
|
25
25
|
}
|
|
26
26
|
return c.sort((o, i) => o.start - i.start || i.end - o.end || o.pathSegments.length - i.pathSegments.length), { sql: r, spans: c };
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function D(n, s) {
|
|
29
29
|
const e = n.filter((a) => a.start <= s && s < a.end);
|
|
30
30
|
return e[e.length - 1];
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function U(n, s) {
|
|
33
33
|
const e = n.filter((a) => s.every((t, r) => a.pathSegments[r] === t));
|
|
34
34
|
return e.filter((a, t) => !e.slice(0, t).some(
|
|
35
35
|
(r) => r.start <= a.start && a.end <= r.end
|
|
@@ -74,88 +74,91 @@ export {
|
|
|
74
74
|
M as CHARCOAL,
|
|
75
75
|
f as DEFAULT_APPEARANCE,
|
|
76
76
|
R as DEFAULT_FUNCTIONS,
|
|
77
|
-
|
|
77
|
+
j as DEFAULT_MESSAGES,
|
|
78
78
|
S as DEFAULT_THEME,
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
qe as DIALECTS,
|
|
80
|
+
He as DIALECT_LABELS,
|
|
81
81
|
I as EMPTY_SCHEMA,
|
|
82
82
|
k as MAX_NAME_LENGTH,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
V as MAX_NUMBER_DIGITS,
|
|
84
|
+
z as MAX_TEXT_LENGTH,
|
|
85
|
+
K as MAX_TYPE_NAME_LENGTH,
|
|
86
86
|
Q as NAVY,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
87
|
+
Je as QUERY_FORMAT_VERSION,
|
|
88
|
+
Ae as QUERY_ISSUE_KINDS,
|
|
89
|
+
Ne as QUERY_WARNING_KINDS,
|
|
90
|
+
P as QueryBuilder,
|
|
91
|
+
We as QueryFormatError,
|
|
92
|
+
Ge as ScopeError,
|
|
93
|
+
_e as SharedBaseError,
|
|
94
|
+
je as addCondition,
|
|
95
|
+
Ve as addGroupBy,
|
|
96
|
+
ze as addJoin,
|
|
97
|
+
Z as addMeasure,
|
|
98
|
+
Ke as addOrderBy,
|
|
99
|
+
Ze as addSelectItem,
|
|
100
|
+
be as addSharedQuery,
|
|
101
|
+
$ as addUnionBranch,
|
|
102
|
+
ee as addUnionJoin,
|
|
103
|
+
ae as addUnionTable,
|
|
104
|
+
p as astToParameterizedSql,
|
|
105
105
|
E as astToSql,
|
|
106
|
-
|
|
106
|
+
b as astToSqlWithSpans,
|
|
107
107
|
C as branchesOf,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
Ee as calendarDay,
|
|
109
|
+
se as createEmptyQuery,
|
|
110
|
+
te as createUnion,
|
|
111
|
+
$e as expr,
|
|
112
112
|
O as filterSchema,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
H as
|
|
118
|
-
G as
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
113
|
+
q as findJoinPath,
|
|
114
|
+
v as formula,
|
|
115
|
+
B as formulaText,
|
|
116
|
+
Se as fromIsoDay,
|
|
117
|
+
H as functionsForDialect,
|
|
118
|
+
G as hasBaseTable,
|
|
119
|
+
Y as isUnion,
|
|
120
|
+
Te as isoDay,
|
|
121
|
+
De as issueLocation,
|
|
122
|
+
Ue as joinMultiplicity,
|
|
123
|
+
ye as joinSharedQuery,
|
|
124
|
+
re as keepMeasuresInStep,
|
|
125
|
+
ea as loadQuery,
|
|
126
|
+
Me as makeShared,
|
|
127
|
+
Qe as makeSubQuery,
|
|
128
|
+
ne as measureFacts,
|
|
129
|
+
oe as queryParams,
|
|
130
|
+
w as reachableTables,
|
|
131
|
+
xe as relativeDateLabel,
|
|
132
|
+
aa as removeJoin,
|
|
133
|
+
Fe as removeSharedQuery,
|
|
134
|
+
ie as removeUnionTable,
|
|
135
|
+
Pe as renameSharedQuery,
|
|
136
|
+
de as renameUnionColumn,
|
|
137
|
+
ve as repeatedReads,
|
|
138
|
+
Be as repeatedTables,
|
|
139
|
+
sa as requireBaseTable,
|
|
140
|
+
Le as rowsPerBase,
|
|
141
|
+
ta as saveQuery,
|
|
142
|
+
Ye as scopeQuery,
|
|
143
|
+
ra as setBaseTable,
|
|
144
|
+
na as setDistinct,
|
|
145
|
+
oa as setHaving,
|
|
146
|
+
ia as setPaging,
|
|
147
|
+
Re as setSharedBase,
|
|
148
|
+
ce as setUnionAll,
|
|
149
|
+
Ie as sharedQueryName,
|
|
150
|
+
ke as sharedUses,
|
|
151
|
+
D as spanAt,
|
|
152
|
+
U as spansFor,
|
|
151
153
|
y as sqlOffsetAt,
|
|
152
154
|
g as sqlRangeOf,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
155
|
+
X as suggestJoin,
|
|
156
|
+
ue as unionName,
|
|
157
|
+
le as unionTableColumns,
|
|
158
|
+
me as unionWithQuery,
|
|
159
|
+
fe as unionableTables,
|
|
160
|
+
we as unscopedBodies,
|
|
161
|
+
he as unwrapUnion,
|
|
162
|
+
Ce as validateQuery,
|
|
163
|
+
J as validateSchema
|
|
161
164
|
};
|