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 373B

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