8000 [Dev] Generate the `EXTENSION_SECRET_TYPES` instead of hardcoding them by Tishj · Pull Request #17183 · duckdb/duckdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Dev] Generate the EXTENSION_SECRET_TYPES instead of hardcoding them #17183

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

Merged
merged 1 commit into from
Apr 19, 2025

Conversation

Tishj
Copy link
Contributor
@Tishj Tishj commented Apr 18, 2025

Expansion of #11623

Instead of hardcoding the secret types we use duckdb_secret_types to generate the list, this PR can also serve as a good example of how to add new generation functionality to the script (there are many more catalog types that are hardcoded still)

@Mytherin Mytherin merged commit 755bd76 into duckdb:main Apr 19, 2025
46 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

Mytherin added a commit that referenced this pull request Apr 30, 2025
….py` for dependencies between extensions (#17204)

This PR is a follow-up to #17183 

To elaborate on that last part:
In `add_extension` we first check if there are dependencies (hardcoded
in the `EXTENSION_DEPENDENCIES` dictionary)
if there are, we make sure to call `add_extension` for those first, if
they are not in the `added_extensions` set already.

In the various `add_<catalog entry type>` methods, we previously only
subtracted the `base_<catalog entry type>` set.
Now we check the dependencies and also subtract the entries added by the
dependencies of the extension, tracked by the `extension_<catalog entry
type>` dictionary.

This is also where we update the `extension_<catalog entry type>`
dictionary.
At the end of `add_extension` we add to the `added_extensions` set.
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
[Dev] Generate the `EXTENSION_SECRET_TYPES` instead of hardcoding them (duckdb/duckdb#17183)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
[Dev] Generate the `EXTENSION_SECRET_TYPES` instead of hardcoding them (duckdb/duckdb#17183)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 19, 2025
[Dev] Generate the `EXTENSION_SECRET_TYPES` instead of hardcoding them (duckdb/duckdb#17183)
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
0