Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sql-parser-cst

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sql-parser-cst - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

44

lib/cst/Bigquery.d.ts

@@ -5,6 +5,6 @@ import { AlterActionSetOptions } from "./AlterAction";

import { BinaryExpr, Expr, Identifier, ListExpr, ParenExpr, EntityName } from "./Expr";
import { JsonLiteral, StringLiteral } from "./Literal";
import { StringLiteral } from "./Literal";
import { AsClause, WithConnectionClause } from "./ProcClause";
import { ClusterByClause, PartitionByClause, SubSelect } from "./Select";
export type AllBigqueryNodes = BigqueryOptions | BigqueryOptionDefaultCollate | AllBigqueryStatements | RowAccessPolicyGrant | FromFilesOptions;
export type AllBigqueryNodes = BigqueryOptions | BigqueryOptionDefaultCollate | AllBigqueryStatements | RowAccessPolicyGrantClause | RowAccessPolicyFilterClause | FromFilesOptions;
export interface BigqueryOptions extends BaseNode {

@@ -23,10 +23,11 @@ type: "bigquery_options";

type: "create_capacity_stmt";
createKw: [Keyword<"CREATE">, Keyword<"CAPACITY">];
createKw: Keyword<"CREATE">;
capacityKw: Keyword<"CAPACITY">;
name: EntityName;
asKw: Keyword<"AS">;
json: JsonLiteral;
options: BigqueryOptions;
}
export interface DropCapacityStmt extends BaseNode {
type: "drop_capacity_stmt";
dropKw: [Keyword<"DROP">, Keyword<"CAPACITY">];
dropKw: Keyword<"DROP">;
capacityKw: Keyword<"CAPACITY">;
ifExistsKw?: [Keyword<"IF">, Keyword<"EXISTS">];

@@ -37,10 +38,11 @@ name: EntityName;

type: "create_reservation_stmt";
createKw: [Keyword<"CREATE">, Keyword<"RESERVATION">];
createKw: Keyword<"CREATE">;
reservationKw: Keyword<"RESERVATION">;
name: EntityName;
asKw: Keyword<"AS">;
json: JsonLiteral;
options: BigqueryOptions;
}
export interface DropReservationStmt extends BaseNode {
type: "drop_reservation_stmt";
dropKw: [Keyword<"DROP">, Keyword<"RESERVATION">];
dropKw: Keyword<"DROP">;
reservationKw: Keyword<"RESERVATION">;
ifExistsKw?: [Keyword<"IF">, Keyword<"EXISTS">];

@@ -51,10 +53,11 @@ name: EntityName;

type: "create_assignment_stmt";
createKw: [Keyword<"CREATE">, Keyword<"ASSIGNMENT">];
createKw: Keyword<"CREATE">;
assignmentKw: Keyword<"ASSIGNMENT">;
name: EntityName;
asKw: Keyword<"AS">;
json: JsonLiteral;
options: BigqueryOptions;
}
export interface DropAssignmentStmt extends BaseNode {
type: "drop_assignment_stmt";
dropKw: [Keyword<"DROP">, Keyword<"ASSIGNMENT">];
dropKw: Keyword<"DROP">;
assignmentKw: Keyword<"ASSIGNMENT">;
ifExistsKw?: [Keyword<"IF">, Keyword<"EXISTS">];

@@ -72,11 +75,14 @@ name: EntityName;

table: EntityName;
grantTo?: RowAccessPolicyGrant;
filterUsingKw: [Keyword<"FILTER">, Keyword<"USING">];
filterExpr: ParenExpr<Expr>;
clauses: (RowAccessPolicyGrantClause | RowAccessPolicyFilterClause)[];
}
export interface RowAccessPolicyGrant extends BaseNode {
type: "row_access_policy_grant";
export interface RowAccessPolicyGrantClause extends BaseNode {
type: "row_access_policy_grant_clause";
grantToKw: [Keyword<"GRANT">, Keyword<"TO">];
grantees: ParenExpr<ListExpr<StringLiteral>>;
}
export interface RowAccessPolicyFilterClause extends BaseNode {
type: "row_access_policy_filter_clause";
filterUsingKw: [Keyword<"FILTER">, Keyword<"USING">];
expr: ParenExpr<Expr>;
}
export interface DropRowAccessPolicyStmt extends BaseNode {

@@ -83,0 +89,0 @@ type: "drop_row_access_policy_stmt";

@@ -7,3 +7,3 @@ import { Alias } from "./Alias";

import { SetClause } from "./Update";
export type AllMergeNodes = MergeStmt | MergeWhenClause | MergeWhenCondition | MergeActionDelete | MergeActionUpdate | MergeActionInsert;
export type AllMergeNodes = MergeStmt | MergeWhenClause | MergeWhenCondition | MergeActionDelete | MergeActionUpdate | MergeActionInsert | MergeActionInsertRowClause;
export interface MergeStmt extends BaseNode {

@@ -47,3 +47,7 @@ type: "merge_stmt";

columns?: ParenExpr<ListExpr<Identifier>>;
values: ValuesClause | Keyword<"ROW">;
values: ValuesClause | MergeActionInsertRowClause;
}
export interface MergeActionInsertRowClause extends BaseNode {
type: "merge_action_insert_row_clause";
rowKw: Keyword<"ROW">;
}

@@ -249,2 +249,3 @@ "use strict";

merge_action_update: (node) => show([node.updateKw, node.set]),
merge_action_insert_row_clause: (node) => show(node.rowKw),
// CREATE SCHEMA statement

@@ -455,8 +456,8 @@ create_schema_stmt: (node) => show([node.createSchemaKw, node.ifNotExistsKw, node.name, node.options]),

// BigQuery-specific statements
create_capacity_stmt: (node) => show([node.createKw, node.name, node.asKw, node.json]),
drop_capacity_stmt: (node) => show([node.dropKw, node.ifExistsKw, node.name]),
create_reservation_stmt: (node) => show([node.createKw, node.name, node.asKw, node.json]),
drop_reservation_stmt: (node) => show([node.dropKw, node.ifExistsKw, node.name]),
create_assignment_stmt: (node) => show([node.createKw, node.name, node.asKw, node.json]),
drop_assignment_stmt: (node) => show([node.dropKw, node.ifExistsKw, node.name]),
create_capacity_stmt: (node) => show([node.createKw, node.capacityKw, node.name, node.options]),
drop_capacity_stmt: (node) => show([node.dropKw, node.capacityKw, node.ifExistsKw, node.name]),
create_reservation_stmt: (node) => show([node.createKw, node.reservationKw, node.name, node.options]),
drop_reservation_stmt: (node) => show([node.dropKw, node.reservationKw, node.ifExistsKw, node.name]),
create_assignment_stmt: (node) => show([node.createKw, node.assignmentKw, node.name, node.options]),
drop_assignment_stmt: (node) => show([node.dropKw, node.assignmentKw, node.ifExistsKw, node.name]),
create_row_access_policy_stmt: (node) => show([

@@ -470,7 +471,6 @@ node.createKw,

node.table,
node.grantTo,
node.filterUsingKw,
node.filterExpr,
node.clauses,
]),
row_access_policy_grant: (node) => show([node.grantToKw, node.grantees]),
row_access_policy_grant_clause: (node) => show([node.grantToKw, node.grantees]),
row_access_policy_filter_clause: (node) => show([node.filterUsingKw, node.expr]),
drop_row_access_policy_stmt: (node) => show([

@@ -477,0 +477,0 @@ node.dropKw,

@@ -5,3 +5,3 @@ {

"license": "GPL-2.0-or-later",
"version": "0.13.0",
"version": "0.14.0",
"main": "lib/main.js",

@@ -8,0 +8,0 @@ "types": "lib/main.d.ts",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc