import {IStatement} from "./_statement";
import {verNot, seq} from "../combi";
import {Target, Source} from "../expressions";
import {Version} from "../../../version";
import {IStatementRunnable} from "../statement_runnable";

export class LoadReport implements IStatement {

  public getMatcher(): IStatementRunnable {
    const ret = seq("LOAD REPORT",
                    Source,
                    "PART",
                    Source,
                    "INTO",
                    Target);

    return verNot(Version.Cloud, ret);
  }

}