@uwdata/mosaic-sql 0.15.0 → 0.16.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/types/ast/select.d.ts +1 -1
- package/dist/types/ast/window.d.ts +1 -1
- package/dist/types/ast/with.d.ts +1 -1
- package/dist/types/functions/column.d.ts +1 -1
- package/dist/types/functions/cte.d.ts +1 -1
- package/dist/types/visit/rewrite.d.ts +1 -1
- package/dist/types/visit/visitors.d.ts +3 -3
- package/package.json +2 -2
- package/src/ast/select.js +2 -1
- package/src/ast/window.js +1 -1
- package/src/ast/with.js +1 -1
- package/src/functions/column.js +1 -1
- package/src/functions/cte.js +1 -1
- package/src/visit/rewrite.js +2 -1
- package/src/visit/visitors.js +4 -3
|
@@ -172,7 +172,7 @@ export class WindowFrameNode extends SQLNode {
|
|
|
172
172
|
export type FrameExtent = [any, any] | ParamLike;
|
|
173
173
|
import { SQLNode } from './node.js';
|
|
174
174
|
import { ExprNode } from './node.js';
|
|
175
|
-
import { AggregateNode } from './aggregate.js';
|
|
175
|
+
import type { AggregateNode } from './aggregate.js';
|
|
176
176
|
import type { ExprVarArgs } from '../types.js';
|
|
177
177
|
import { FunctionNode } from './function.js';
|
|
178
178
|
import type { WindowFunctionName } from '../types.js';
|
package/dist/types/ast/with.d.ts
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export function column(name: string | ParamLike, table?: string | string[] | TableRefNode): ColumnRefNode;
|
|
9
9
|
import type { ParamLike } from '../types.js';
|
|
10
|
-
import { TableRefNode } from '../ast/table-ref.js';
|
|
10
|
+
import type { TableRefNode } from '../ast/table-ref.js';
|
|
11
11
|
import type { ColumnRefNode } from '../ast/column-ref.js';
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* @returns {WithClauseNode}
|
|
10
10
|
*/
|
|
11
11
|
export function cte(name: string, query: Query, materialized?: boolean | null): WithClauseNode;
|
|
12
|
-
import { Query } from '../ast/query.js';
|
|
12
|
+
import type { Query } from '../ast/query.js';
|
|
13
13
|
import { WithClauseNode } from '../ast/with.js';
|
|
@@ -28,7 +28,7 @@ export function collectColumns(root: SQLNode): ColumnRefNode[];
|
|
|
28
28
|
* @returns {ParamLike[]}
|
|
29
29
|
*/
|
|
30
30
|
export function collectParams(root: SQLNode): ParamLike[];
|
|
31
|
-
import { SQLNode } from '../ast/node.js';
|
|
32
|
-
import { AggregateNode } from '../ast/aggregate.js';
|
|
33
|
-
import { ColumnRefNode } from '../ast/column-ref.js';
|
|
31
|
+
import type { SQLNode } from '../ast/node.js';
|
|
32
|
+
import type { AggregateNode } from '../ast/aggregate.js';
|
|
33
|
+
import type { ColumnRefNode } from '../ast/column-ref.js';
|
|
34
34
|
import type { ParamLike } from '../types.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uwdata/mosaic-sql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "SQL query construction and analysis.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sql",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"tsc": "tsc -p jsconfig.json",
|
|
28
28
|
"prepublishOnly": "npm run test && npm run lint && npm run build"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "e12af9927b0a35a0e3194850ef569d0d24a022ce"
|
|
31
31
|
}
|
package/src/ast/select.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/** @import { ExprNode } from './node.js' */
|
|
1
2
|
import { SELECT_CLAUSE } from '../constants.js';
|
|
2
3
|
import { quoteIdentifier } from '../util/string.js';
|
|
3
4
|
import { ColumnRefNode } from './column-ref.js';
|
|
4
|
-
import {
|
|
5
|
+
import { SQLNode } from './node.js';
|
|
5
6
|
|
|
6
7
|
export class SelectClauseNode extends SQLNode {
|
|
7
8
|
/**
|
package/src/ast/window.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* @import { AggregateNode } from './aggregate.js'
|
|
2
3
|
* @import { ExprVarArgs, WindowFunctionName } from '../types.js'
|
|
3
4
|
* @import { ParamLike } from '../types.js'
|
|
4
5
|
*/
|
|
@@ -6,7 +7,6 @@ import { WINDOW, WINDOW_CLAUSE, WINDOW_DEF, WINDOW_FRAME } from '../constants.js
|
|
|
6
7
|
import { exprList } from '../util/function.js';
|
|
7
8
|
import { quoteIdentifier } from '../util/string.js';
|
|
8
9
|
import { isParamLike } from '../util/type-check.js';
|
|
9
|
-
import { AggregateNode } from './aggregate.js';
|
|
10
10
|
import { FunctionNode } from './function.js';
|
|
11
11
|
import { ExprNode, isNode, SQLNode } from './node.js';
|
|
12
12
|
import { ParamNode } from './param.js';
|
package/src/ast/with.js
CHANGED
package/src/functions/column.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @import { ColumnRefNode } from '../ast/column-ref.js'
|
|
3
|
+
* @import { TableRefNode } from '../ast/table-ref.js'
|
|
3
4
|
* @import { ParamLike } from '../types.js'
|
|
4
5
|
*/
|
|
5
6
|
import { ColumnParamNode } from '../ast/column-param.js';
|
|
6
7
|
import { ColumnNameRefNode } from '../ast/column-ref.js';
|
|
7
8
|
import { ParamNode } from '../ast/param.js';
|
|
8
|
-
import { TableRefNode } from '../ast/table-ref.js';
|
|
9
9
|
import { asTableRef } from '../util/ast.js';
|
|
10
10
|
import { isParamLike } from '../util/type-check.js';
|
|
11
11
|
|
package/src/functions/cte.js
CHANGED
package/src/visit/rewrite.js
CHANGED
package/src/visit/visitors.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* @import { AggregateNode } from '../ast/aggregate.js'
|
|
3
|
+
* @import { ColumnRefNode } from '../ast/column-ref.js'
|
|
4
|
+
* @import { SQLNode } from '../ast/node.js'
|
|
2
5
|
* @import { ParamNode } from '../ast/param.js'
|
|
3
6
|
* @import { ParamLike } from '../types.js'
|
|
4
7
|
*/
|
|
5
8
|
import { AGGREGATE, COLUMN_PARAM, COLUMN_REF, FRAGMENT, PARAM, VERBATIM, WINDOW } from '../constants.js';
|
|
6
|
-
import { aggregateNames
|
|
7
|
-
import { ColumnRefNode } from '../ast/column-ref.js';
|
|
8
|
-
import { SQLNode } from '../ast/node.js';
|
|
9
|
+
import { aggregateNames } from '../ast/aggregate.js';
|
|
9
10
|
import { walk } from './walk.js';
|
|
10
11
|
|
|
11
12
|
// regexp to match valid aggregate function names
|