INNER CODE UNIT · TypeScript

push

bytebase/dbhub · src/connectors/oracle/index.ts:822

    const push = (start: number, end: number) => {
      const text = sql.slice(start, end).trim();
      if (text) statements.push(text);
    };

    let i = 0;
    while (i < blanked.length) {
      boundary.lastIndex = i;
      i += boundary.exec(blanked)![0].length;
      if (i >= blanked.length) break;
      const start = i;

      const rest = blanked.slice(i);
      const isUnit = OracleConnector.PLSQL_UNIT.test(rest);
      if (!isUnit && !OracleConnector.PLSQL_BODY.test(rest)) {
        plainEnd.lastIndex = i;
        const m = plainEnd.exec(blanked);
        const end = m?.index ?? blanked.length;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…