-
-
Notifications
You must be signed in to change notification settings - Fork 188
sqlite SQLITE_ENABLE_DBSTAT_VTAB option #309
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
Comments
I would add the define to the shell script, which is what builds SQLite itself. The YAML config is for configuring how the Python C extensions are built, not how SQLite itself is built. |
Oh, I support enabling this feature. And any other SQLite features that are commonly enabled in the wild. Assuming the risks/ downsides are minimal of course. For opt in features like this, I don't see any harm. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The sqlite option SQLITE_ENABLE_DBSTAT_VTAB enables the
dbstat
virtual table that can show table sizes. The Python on my distro (Mint) was linked to a sqlite that had been compiled with this option, but it seems the defaultbuild-linux.py
configuration does not set it.I was going to make a PR to add it to
cpython-unix/extension-modules.yml
like so:However, this doesn't work. In the resulting python build the compile option has not been set:
You can see that
ENABLE_DBSTAT_VTAB
is missing. However, if instead I insert the option into thebuild-sqlite.sh
script like this:The build does work and show the option in the
pragma compile_options
output.What am I misunderstanding about how to set defines in
extension-modules.yml
?The text was updated successfully, but these errors were encountered: