-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable rtree support in SQLite #87606
Comments
I heard [1] that rtree support would be very useful in SQLite. We should see whether enabling it is safe/easy/cheap and then do it. 1: https://twitter.com/Jamieallencook/status/1368221499794976775?s=20 |
Unless I’m mistaken, that’s enabled simply by compiling with SQLITE_ENABLE_RTREE defined. |
I can put up a PR for it. I don’t see any reason not to enable it. |
Actually, the macOS build already builds with R*Tree support enabled, but it is missing from PCbuild/sqlite3.vcxproj. I'm not very familiar with the Windows build; does compile options set in setup.py propagate to the Windows build, or do we need to set it both places? |
Seems like it doesn't; correct me if I'm wrong. PR coming up. |
We should also consider adding support for R*Tree query callbacks using sqlite3_rtree_query_callback() for SQLite >= 3.8.5, and sqlite3_rtree_geometry_callback() for older versions. |
Er, forget it. setup.py is of course only used to build the sqlite3 module, not sqlite3. |
Perfect, thanks! Callbacks are a bigger ask, but I don't have any fundamental opposition to them. Probably worth opening a new issue, as it'll affect all platforms (I assume). And yeah, the setup.py in the CPython repo doesn't impact any of the Windows build at all. It needs to go into PCbuild somewhere as well. |
Anytime :) I'll create an issue for rtree callbacks. |
I've opened bpo-43454 for R*Tree callbacks. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: