public override IConnectionAdapter CreateConnectionAdapter() { var connectionAdapter = new OracleConnectionAdapter(this); _connectionAdapters.Add(connectionAdapter); return(connectionAdapter); }
public override Task MapReaderData(OracleDataReader reader, CancellationToken cancellationToken) { var columnNames = OracleConnectionAdapter.GetColumnHeadersFromReader(reader) .Select(h => $"\"{h.Name}\""); _columns.AddRange(columnNames); return(Task.CompletedTask); }
public OracleDebuggerSession(OracleConnectionAdapter connectionAdapter, OracleCommand debuggedCommand, StatementExecutionBatchResult executionResult) { _connectionAdapter = connectionAdapter; ExecutionResult = executionResult; DebuggedCommand = debuggedCommand; var debuggedConnection = DebuggedCommand.Connection; _debuggedSessionCommand = debuggedConnection.CreateCommand(); _debuggedSessionCommand.BindByName = true; _debuggerConnection = (OracleConnection)debuggedConnection.Clone(); _debuggerSessionCommand = _debuggerConnection.CreateCommand(); _debuggerSessionCommand.BindByName = true; _sources.Add(PlSqlBlockTitle, debuggedCommand.CommandText.Trim()); }
internal void RemoveConnectionAdapter(OracleConnectionAdapter connectionAdapter) { _connectionAdapters.Remove(connectionAdapter); }