A work-in-progress SQL parser written in TypeScript
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

selectStatement.ts 381B

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