recipe: oracledb 4.0.1#83
Merged
Merged
Conversation
…pping support-tree dep wheels
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.
Adds python-oracledb 4.0.1 (official Oracle Database driver) for iOS and Android.
Closes flet-dev/flet#3249. Also supersedes the cx_Oracle request (flet-dev/flet#3381), which is infeasible on mobile (it requires the proprietary Oracle Instant Client); oracledb's default thin mode needs no Oracle client libraries.
Recipe shape
Plain Cython C-extension, no patches, no
flet-lib*dependency. python-oracledb compiles four Cython extensions (base_impl,thin_impl,thick_impl,arrow_impl), and bundles all its native code in the sdist — ODPI-C (for thick mode) and nanoarrow (for Arrow dataframes) — so there's no external native library to build or link.Runtime deps
cryptography(already on pypi.flet.dev) andtyping_extensions(pure-Python) come from the wheel metadata and resolve at app-build time.Thin vs thick mode
The default thin mode is a pure-socket implementation of Oracle Net — no Oracle client libraries required, so it works on mobile.
thick_impl.sois imported at package load (oracledb/__init__.py) and builds/loads fine without the Instant Client (ODPI-Cdlopens it lazily, only oninit_oracle_client()), so thick mode is simply unavailable on mobile while thin mode — the supported path — works.Tested
arm64-v8a/armeabi-v7a/x86/x86_64and iOSarm64(device) /arm64(simulator) /x86_64(simulator), Python 3.12.import oracledbloads all four Cython extensions,is_thin_mode()isTrue,cryptographyloads, and a real thin-mode round-trip — Oracle Net handshake + O5LOGON crypto auth +SELECT 'hello-from-flet', SYSDATE FROM dual— succeeds against Oracle Database Free 23ai (server 23.26.2.0.0), returning the expected row on both platforms.