Skip to content

Support connection properties in URL#237

Merged
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:prop_options
May 31, 2025
Merged

Support connection properties in URL#237
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:prop_options

Conversation

@staticlibs
Copy link
Collaborator

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 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 d7c1d91 into duckdb:main May 31, 2025
19 of 20 checks passed
@staticlibs staticlibs deleted the prop_options branch May 31, 2025 18:30
staticlibs added a commit to staticlibs/duckdb-java that referenced this pull request Jun 16, 2025
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 added a commit that referenced this pull request Jun 16, 2025
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.
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