@dataform/sqlx
Advanced tools
Comparing version 1.5.1 to 1.5.2
/// <amd-module name="@dataform/sqlx/lexer" /> | ||
export interface ISyntaxTreeNode { | ||
contentType: "sql" | "js" | "jsPlaceholder" | "sqlStatementSeparator" | "sqlComment"; | ||
contents: Array<string | ISyntaxTreeNode>; | ||
export declare enum SyntaxTreeNodeType { | ||
SQL = 0, | ||
JAVASCRIPT = 1, | ||
JAVASCRIPT_TEMPLATE_STRING_PLACEHOLDER = 2, | ||
SQL_STATEMENT_SEPARATOR = 3, | ||
SQL_COMMENT = 4 | ||
} | ||
export declare function constructSyntaxTree(code: string): ISyntaxTreeNode; | ||
export declare class SyntaxTreeNode { | ||
readonly type: SyntaxTreeNodeType; | ||
private allChildren; | ||
static create(code: string): SyntaxTreeNode; | ||
constructor(type: SyntaxTreeNodeType, allChildren?: Array<string | SyntaxTreeNode>); | ||
children(): (string | SyntaxTreeNode)[]; | ||
concatenate(): string; | ||
push(child: string | SyntaxTreeNode): this; | ||
equals(other: SyntaxTreeNode): boolean; | ||
} | ||
export interface ISqlxParseResults { | ||
@@ -8,0 +20,0 @@ config: string; |
{ | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"homepage": "https://github.com/dataform-co/dataform", | ||
@@ -4,0 +4,0 @@ "license": "MIT", |
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
73387
479