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 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` are never wrapped. `predicate` is parsed as one boolean expression;
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` are never wrapped. `predicate` is parsed as one boolean expression;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sqlscope-rs",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Scope-aware SQL analysis and rewriting: row filters, CTE injection, table rewrites, column lineage.",
5
5
  "keywords": [
6
6
  "sql",
Binary file