A work-in-progress SQL parser written in TypeScript
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

selectStatement.ts 489B

12345678910111213141516171819
  1. import * as AST from "../ast";
  2. export interface ISelectStatementOptions {
  3. arguments: AST.Secondary[];
  4. from?: AST.Secondary | null;
  5. where?: AST.Expr | null
  6. }
  7. export class SelectStatement {
  8. public arguments: AST.Secondary[];
  9. public from: AST.Secondary | 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. }