sql-parser-cst
Advanced tools
Comparing version 0.9.3 to 0.9.4
import { BaseNode, Keyword } from "./Base"; | ||
import { DataType } from "./DataType"; | ||
import { Identifier, ListExpr, ParenExpr, BinaryExpr, Expr } from "./Expr"; | ||
import { Identifier, ListExpr, ParenExpr, BinaryExpr, Expr, FuncCall } from "./Expr"; | ||
import { Program } from "./Program"; | ||
import { SubSelect } from "./Select"; | ||
export declare type AllProceduralNodes = AllProceduralStatements | DeclareDefault | IfClause | ElseifClause | ElseClause; | ||
export declare type AllProceduralStatements = DeclareStmt | SetStmt | IfStmt | LoopStmt | RepeatStmt | WhileStmt | ForStmt | BreakStmt | ContinueStmt; | ||
export declare type AllProceduralStatements = DeclareStmt | SetStmt | IfStmt | LoopStmt | RepeatStmt | WhileStmt | ForStmt | BreakStmt | ContinueStmt | CallStmt | ReturnStmt; | ||
export interface DeclareStmt extends BaseNode { | ||
@@ -89,1 +89,11 @@ type: "declare_stmt"; | ||
} | ||
export interface CallStmt extends BaseNode { | ||
type: "call_stmt"; | ||
callKw: Keyword<"CALL">; | ||
func: FuncCall; | ||
} | ||
export interface ReturnStmt extends BaseNode { | ||
type: "return_stmt"; | ||
returnKw: Keyword<"RETURN">; | ||
expr?: Expr; | ||
} |
@@ -425,2 +425,4 @@ "use strict"; | ||
continue_stmt: (node) => show([node.continueKw]), | ||
call_stmt: (node) => show([node.callKw, node.func]), | ||
return_stmt: (node) => show([node.returnKw, node.expr]), | ||
// SQLite-specific statements | ||
@@ -427,0 +429,0 @@ attach_database_stmt: (node) => show([node.attachKw, node.databaseKw, node.file, node.asKw, node.schema]), |
@@ -5,3 +5,3 @@ { | ||
"license": "GPL-2.0-or-later", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"main": "lib/main.js", | ||
@@ -8,0 +8,0 @@ "types": "lib/main.d.ts", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2087708
63744