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.

selectStatement.ts 482B

12345678910111213141516171819
  1. import * as AST from "../ast";
  2. export interface ISelectStatementOptions {
  3. arguments: AST.Expr[];
  4. from?: AST.FromTarget | null;
  5. where?: AST.Expr | null;
  6. }
  7. export class SelectStatement {
  8. public arguments: AST.Expr[];
  9. public from: AST.FromTarget | null;
  10. public where: AST.Expr | null;
  11. constructor(opts: ISelectStatementOptions) {
  12. this.arguments = opts.arguments;
  13. this.from = opts.from ? opts.from : null;
  14. this.where = opts.where ? opts.where : null;
  15. }
  16. }