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

Wiring storage_info into attach and create_transaction_manager calls #6161

Merged
merged 5 commits into from
Feb 10, 2023

Conversation

rjatwal
Copy link
Contributor

@rjatwal rjatwal commented Feb 9, 2023

No description provided.

@Mytherin
Copy link
Collaborator

Mytherin commented Feb 9, 2023

Thanks! The remaining issue here is that the SQLite extension relies on these functions as well. The way we handle that conflict is by first patching the SQLite extension, and then updating the git hash that is referenced in .github/config/extensions.csv as part of the PR to the main repo.

typedef unique_ptr<Catalog> (*attach_function_t)(AttachedDatabase &db, const string &name, AttachInfo &info,
AccessMode access_mode);
typedef unique_ptr<TransactionManager> (*create_transaction_manager_t)(AttachedDatabase &db, Catalog &catalog);
typedef unique_ptr<Catalog> (*attach_function_t)(StorageExtensionInfo &storage_info, AttachedDatabase &db,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the StorageExtensionInfo is optional - perhaps we can make this a pointer instead?

@Mytherin Mytherin merged commit 4e6159c into duckdb:master Feb 10, 2023
@rjatwal rjatwal deleted the rj/patching-storage-extension branch February 10, 2023 07:29
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.

None yet

3 participants