Feature Request: Expose the DuckDB version number #1848
jonathonadams
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue
The
PACKAGE_NAME
andPACKAGE_VERSION
are exposed as constants as seen here, however the underlying DuckDB version is not.Feature request
Add another constant,
DUCKDB_VERSION
, that exports the current DuckDB version of the respective package.Reasoning / Use Case
As explained in the fetching DuckDB WASM extensions the URL to fetch in-tree extensions requires the DuckDB version number. Although the docs explain how you could manually fetch the extensions, from what I can tell there is no way to actually construct the URL from the exposed constants.
This is necessary if you want to pre-fetch the extensions, i.e. in a service worker, or to bundle the extension with the main WASM binary as part of the build step.
Importance
Nice to have
Beta Was this translation helpful? Give feedback.
All reactions