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

Introduce feature to query core database connection from within vtab module extensions #1076

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

PThorpe92
Copy link
Contributor

This PR adds functionality for a vtab module extension to hold and store a Connection from core, giving extensions the ability to query other tables associated with the open connection.

This adds two API's currently, Connection and Statement, which are public facing (extensions) and wrap the Conn and Stmt structs which store the internal function pointers and context needed to perform the queries.

I will mark this as a draft until #960 is merged and I can combine the kvstore and testvfs extensions into one, so I can add a bunch of tests in 1 dummy extension. However I have tested the functionality of everything that's included in this PR, I just don't want to merge anything without extensive tests.

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

Successfully merging this pull request may close these issues.

1 participant