Skip to content
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

Support additional column metadata #354

Closed
rogerbinns opened this issue Aug 4, 2022 · 0 comments
Closed

Support additional column metadata #354

rogerbinns opened this issue Aug 4, 2022 · 0 comments

Comments

@rogerbinns
Copy link
Owner

SQLITE_ENABLE_COLUMN_METADATA is off by default. When it is on then additional column information is available. Examining the SQLite code shows that the cost of turning on SQLITE_ENABLE_COLUMN_METADATA is 3 additional strdup operations per column in each cursor, which seems rather cheap.

For an externally provided sqlite3 library (ie non amalgamation) the setting is likely off. However we can enable it by default for the amalgamation. There would also be a setup.py --enable flag for external library.

A Cursor.description_fuill() method can then return all the information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant