sqlscope-rs 0.3.0 → 0.5.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/api.d.ts +3 -2
- package/dist/api.js +2 -1
- package/package.json +1 -1
- package/wasm/sqlscope_wasm_bg.wasm +0 -0
package/dist/api.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export interface TableRewrite {
|
|
|
72
72
|
union?: UnionRewrite;
|
|
73
73
|
}
|
|
74
74
|
/** The SQL clause that contains a column reference. */
|
|
75
|
-
export type Clause = "SELECT" | "FROM" | "JOIN_ON" | "JOIN_USING" | "WHERE" | "GROUP_BY" | "HAVING" | "QUALIFY" | "WINDOW" | "ORDER_BY" | "SORT_BY" | "DISTRIBUTE_BY" | "CLUSTER_BY" | "CONNECT_BY" | "LATERAL_VIEW" | "UPDATE_SET_TARGET" | "UPDATE_SET_VALUE" | "MERGE_ON" | "MERGE_WHEN";
|
|
75
|
+
export type Clause = "SELECT" | "FROM" | "JOIN_ON" | "JOIN_USING" | "WHERE" | "GROUP_BY" | "HAVING" | "QUALIFY" | "WINDOW" | "ORDER_BY" | "SORT_BY" | "DISTRIBUTE_BY" | "CLUSTER_BY" | "CONNECT_BY" | "LATERAL_VIEW" | "UPDATE_SET_TARGET" | "UPDATE_SET_VALUE" | "MERGE_ON" | "MERGE_WHEN" | "RETURNING";
|
|
76
76
|
/** One distinct use of a root table column in a clause. */
|
|
77
77
|
export interface ColumnUsage {
|
|
78
78
|
table: string;
|
|
@@ -85,7 +85,8 @@ export interface ColumnUsage {
|
|
|
85
85
|
* `SELECT * FROM a` becomes `SELECT * FROM (SELECT * FROM a WHERE <predicate>) AS a`.
|
|
86
86
|
* By default every physical table is filtered; `tableNames`, `tablePatterns`
|
|
87
87
|
* and `defaultDb` restrict the scope. CTE references, table functions and
|
|
88
|
-
* `DUAL`
|
|
88
|
+
* the `DUAL` dummy table (Oracle, the MySQL family, Snowflake) are never
|
|
89
|
+
* wrapped. `predicate` is parsed as one boolean expression;
|
|
89
90
|
* bind or escape its values before calling. Returns the input unchanged when
|
|
90
91
|
* no table is in scope.
|
|
91
92
|
*/
|
package/dist/api.js
CHANGED
|
@@ -23,7 +23,8 @@ function run(operation, sql, fields, options) {
|
|
|
23
23
|
* `SELECT * FROM a` becomes `SELECT * FROM (SELECT * FROM a WHERE <predicate>) AS a`.
|
|
24
24
|
* By default every physical table is filtered; `tableNames`, `tablePatterns`
|
|
25
25
|
* and `defaultDb` restrict the scope. CTE references, table functions and
|
|
26
|
-
* `DUAL`
|
|
26
|
+
* the `DUAL` dummy table (Oracle, the MySQL family, Snowflake) are never
|
|
27
|
+
* wrapped. `predicate` is parsed as one boolean expression;
|
|
27
28
|
* bind or escape its values before calling. Returns the input unchanged when
|
|
28
29
|
* no table is in scope.
|
|
29
30
|
*/
|
package/package.json
CHANGED
|
Binary file
|