Skip to content

Support connection properties in URL (1.3)#271

Merged
staticlibs merged 1 commit intoduckdb:v1.3-ossivalisfrom
staticlibs:prop_options_13
Jun 16, 2025
Merged

Support connection properties in URL (1.3)#271
staticlibs merged 1 commit intoduckdb:v1.3-ossivalisfrom
staticlibs:prop_options_13

Conversation

@staticlibs
Copy link
Collaborator

This is a backport of the PR #237 to v1.3-ossivalis stable branch.

This change adds support for specifying connection properties as part of the connection string itself. It is intended to be used in cases, when Properties map is passed by some tool that does not allow direct access to it, and some of these Properties values need to be overridden.

Properties in URL are accepted in key=value format, ; is used as a separator, empty properties are ignored.

URL example: jdbc:duckdb:;allow_community_extensions=true;;allow_unsigned_extensions = false;.

Testing: new test added that checks that properties in URL take preference.

This is a backport of the PR duckdb#237 to `v1.3-ossivalis` stable branch.

This change adds support for specifying connection properties as part
of the connection string itself. It is intended to be used in cases,
when `Properties` map is passed by some tool that does not allow direct
access to it, and some of these `Properties` values need to be
overridden.

Properties in URL are accepted in `key=value` format, `;` is used as a
separator, empty properties are ignored.

URL example: `jdbc:duckdb:;allow_community_extensions=true;;allow_unsigned_extensions = false;`.

Testing: new test added that checks that properties in URL take
preference.
@staticlibs staticlibs merged commit 6fe8ec4 into duckdb:v1.3-ossivalis Jun 16, 2025
@staticlibs staticlibs deleted the prop_options_13 branch June 16, 2025 00:10
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