UNPKG

trader-pgsql-ast-parser

Version:

Yet another simple Postgres SQL parser/modifier

23 lines 642 B
import { Expr, Name, DataTypeDef, QName } from "../syntax/ast"; export declare type Declaration = { type: "declaration"; variable: Name; constant: boolean; typeAnnotation: DataTypeDef; collation?: QName; notnull: boolean; default: boolean; expression?: Expr; }; export declare type BlockStatement = { type: "block"; declarations?: Declaration[]; statements: Statement[]; }; export declare type Statement = AssignmentStatement | BlockStatement; export declare type AssignmentStatement = { type: "assignment"; variable: Name; expression: Expr; }; //# sourceMappingURL=plpgsql-ast.d.ts.map