Skip to content

Wiring storage_info into attach and create_transaction_manager calls#6161

Merged
Mytherin merged 5 commits intoduckdb:masterfrom
motherduckdb:rj/patching-storage-extension
Feb 10, 2023
Merged

Wiring storage_info into attach and create_transaction_manager calls#6161
Mytherin merged 5 commits intoduckdb:masterfrom
motherduckdb:rj/patching-storage-extension

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.

2 participants