A work-in-progress SQL parser written in TypeScript
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

statement.ts 377B

1234567891011121314151617181920
  1. import * as AST from "../ast";
  2. export enum StatementType {
  3. SELECT = "SELECT",
  4. }
  5. export interface IStatementOptions {
  6. type: StatementType;
  7. arguments: AST.Primary[];
  8. }
  9. export class Statement {
  10. public type: StatementType;
  11. public arguments: AST.Primary[];
  12. constructor(opts: IStatementOptions) {
  13. this.type = opts.type;
  14. this.arguments = opts.arguments;
  15. }
  16. }