INNER CODE UNIT · TypeScript

token

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

    const token = /\b(begin|case|end|compound\s+trigger)\b(?:\s+(if|loop|case))?|;|^[ \t]*\/[ \t]*$/gim;

    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;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…