INNER CODE UNIT · TypeScript
OracleConnector
bytebase/dbhub · src/connectors/oracle/index.ts:140
export class OracleConnector implements Connector {
id: ConnectorType = "oracle";
name = "Oracle";
dsnParser = new OracleDSNParser();
private pool?: oracledb.Pool;
private callTimeoutMs?: number;
/** CURRENT_SCHEMA of the connected session, resolved once at connect time */
private defaultSchema = "";
// Source ID is set by ConnectorManager after cloning
private sourceId: string = "default";
/**
* Leading keywords of a statement whose body is PL/SQL. Such a statement
* ends at the semicolon that closes its outermost BEGIN ... END, not at
* the first semicolon (see splitStatements).
*/
private static readonly PLSQL_BODY =