@nongt/visql 0.9.0 → 0.10.1

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/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { D as f } from "./PipelineEditor-C10lng6j.js";
2
- import { P as v, f as B, a as L } from "./PipelineEditor-C10lng6j.js";
3
- import { D as R, E as I, M as k, b as C, f as O, c as q, h as H, i as G, v as Y } from "./schema-dP_ISylQ.js";
4
- import { D as X, M as W, a as j, b as J, d as V, e as z, f as K, g as Z, c as $, h as ee, k as ae, m as se, q as te, i as re, j as ne, s as oe, l as ie, p as de, n as ce, o as ue, u as le } from "./params-MMOdKWnW.js";
5
- import { c as fe, f as pe, i as he } from "./calendarDate-CYlr9TvX.js";
6
- import { Q as Se, l as Te, S as ge, a as Ae, n as Ne, f as _e, j as De, m as Ue, b as be, k as ye, r as Me, c as Qe, g as xe, h as Fe, i as ve, s as Be, d as Le, e as Pe, v as Re } from "./issueLocation-BOSdd1JX.js";
7
- import { w as p, a as h, b as E } from "./sqlGen-B7-2-i9V.js";
8
- import { D as ke, c as Ce, S as Oe, s as qe, u as He } from "./sqlGen-B7-2-i9V.js";
9
- import { QUERY_FORMAT_VERSION as Ye, QueryFormatError as we, addCondition as Xe, addGroupBy as We, addJoin as je, addOrderBy as Je, addSelectItem as Ve, expr as ze, loadQuery as Ke, removeJoin as Ze, requireBaseTable as $e, saveQuery as ea, setBaseTable as aa, setDistinct as sa, setHaving as ta, setPaging as ra } from "./core.js";
1
+ import { D as f } from "./PipelineEditor-CGTZGbmf.js";
2
+ import { P, f as v, a as B } from "./PipelineEditor-CGTZGbmf.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-CgL10bid.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-DkVFbMQn.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-BlQ280IE.js";
7
+ import { w as h, a as p, b as E } from "./sqlGen-C1kZwvWI.js";
8
+ import { D as qe, c as He, S as Ge, s as Ye, u as we } from "./sqlGen-C1kZwvWI.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 D(n, s, e = {}) {
12
- const a = { paths: [] }, t = p(a, () => e.parameterized ? h(n, s, e).sql : E(n, s, e));
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 U(n, s) {
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 b(n, s) {
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
- X as DEFAULT_MESSAGES,
77
+ j as DEFAULT_MESSAGES,
78
78
  S as DEFAULT_THEME,
79
- ke as DIALECTS,
80
- Ce as DIALECT_LABELS,
79
+ qe as DIALECTS,
80
+ He as DIALECT_LABELS,
81
81
  I as EMPTY_SCHEMA,
82
82
  k as MAX_NAME_LENGTH,
83
- W as MAX_NUMBER_DIGITS,
84
- j as MAX_TEXT_LENGTH,
85
- J as MAX_TYPE_NAME_LENGTH,
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
- Ye as QUERY_FORMAT_VERSION,
88
- Se as QUERY_ISSUE_KINDS,
89
- Te as QUERY_WARNING_KINDS,
90
- v as QueryBuilder,
91
- we as QueryFormatError,
92
- Oe as ScopeError,
93
- ge as SharedBaseError,
94
- Xe as addCondition,
95
- We as addGroupBy,
96
- je as addJoin,
97
- V as addMeasure,
98
- Je as addOrderBy,
99
- Ve as addSelectItem,
100
- Ae as addSharedQuery,
101
- z as addUnionBranch,
102
- K as addUnionJoin,
103
- Z as addUnionTable,
104
- h as astToParameterizedSql,
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
- D as astToSqlWithSpans,
106
+ b as astToSqlWithSpans,
107
107
  C as branchesOf,
108
- fe as calendarDay,
109
- $ as createEmptyQuery,
110
- ee as createUnion,
111
- ze as expr,
108
+ Ee as calendarDay,
109
+ se as createEmptyQuery,
110
+ te as createUnion,
111
+ $e as expr,
112
112
  O as filterSchema,
113
- B as formula,
114
- L as formulaText,
115
- pe as fromIsoDay,
116
- q as functionsForDialect,
117
- H as hasBaseTable,
118
- G as isUnion,
119
- he as isoDay,
120
- Ne as issueLocation,
121
- _e as joinMultiplicity,
122
- De as joinSharedQuery,
123
- ae as keepMeasuresInStep,
124
- Ke as loadQuery,
125
- Ue as makeShared,
126
- be as makeSubQuery,
127
- se as measureFacts,
128
- te as queryParams,
129
- ye as relativeDateLabel,
130
- Ze as removeJoin,
131
- Me as removeSharedQuery,
132
- re as removeUnionTable,
133
- Qe as renameSharedQuery,
134
- ne as renameUnionColumn,
135
- xe as repeatedReads,
136
- Fe as repeatedTables,
137
- $e as requireBaseTable,
138
- ve as rowsPerBase,
139
- ea as saveQuery,
140
- qe as scopeQuery,
141
- aa as setBaseTable,
142
- sa as setDistinct,
143
- ta as setHaving,
144
- ra as setPaging,
145
- Be as setSharedBase,
146
- oe as setUnionAll,
147
- Le as sharedQueryName,
148
- Pe as sharedUses,
149
- U as spanAt,
150
- b as spansFor,
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
- ie as unionName,
154
- de as unionTableColumns,
155
- ce as unionWithQuery,
156
- ue as unionableTables,
157
- He as unscopedBodies,
158
- le as unwrapUnion,
159
- Re as validateQuery,
160
- Y as validateSchema
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
  };