Repository navigation
refactor(ios): run Oracle on the Mac plugin's driver - #4407
Merged
Merged
Conversation
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OraclePluginDriverbehindPluginBackedDriver(OracleBackedDriver), compiled as a source path like DuckDB, SQLite, ClickHouse, D1 and MongoDB. The hand-writtenOracleDriver.swiftand the iOS copy of the TLS mapping are gone; the 12 per-file plugin entries in the iOSproject.ymlare replaced by the folder.debugStateunder#if !os(iOS), andPluginDiagnosticProviderdeclared on the diagnostics extension.ENABLE(NULL)buffers without limit.streamEachRow, one row per element. A grid read takes each row as it arrives and cuts its values for display throughPluginRowEmitter, so no batch of rows is held whole; one row past the cap ends the read.OracleBackedDriverkeeps what iOS did: Stop closes the channel (OracleNIO has no out-of-band cancel), Verify CA is refused with the iOS message, the stored SSL mode dials as it is with the tunnel's server name, the query timeout reaches the core, edits stay on SQLBuilder's Oracle SQL.OracleMobileExportCatalog(objects under their owner, D14) over the plugin's ownexportCatalog; import keepsOracleMobileWriteDialect.PluginBackedDriver.makeExportCatalogandmakeWriteDialectmove into the class body so Oracle overrides them.SSLHandshakeError), an anonymous block reports no row count,executespells bytes in hex.OracleSSLMappingTests(the plugin's mapping, through the factory; the Verify CA message throughconnect),NativeDriverQueryTimeoutTests(Oracle case),OracleTransferEngineTests(the plugin's binder).OracleDriverTransactionStateTests, which pinned the native driver before connecting, moved toPluginBackedDriverTests(idle opens its own transaction, an open one is joined).OracleBackedDriverTests(connection fields reach the plugin, grid cut, cap and Stop let the plugin's read go, errors pass on, identity and virtual columns flagged, edits stay on SQLBuilder).Refs #4272 (IO-09, third of seven engines).
Test plan
AllPluginsbuilds the Oracle plugin.