Skip to content

Support memory DBs in URL without leading colon#234

Merged
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:memory_colon
May 30, 2025
Merged

Support memory DBs in URL without leading colon#234
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:memory_colon

Conversation

@staticlibs
Copy link
Collaborator

Minor change, to allow passing named in-memory connections without double colon prefix. So the following URLs will point to the same in-memory DB:

jdbc:duckdb::memory:tag1
jdbc:duckdb:memory:tag1

Testing: new test added that check that DB instance cache works correctly with and without second colon in URL.

Minor change, to allow passing named in-memory connections without
double colon prefix. So the following URLs will point to the same
in-memory DB:

```
jdbc:duckdb::memory:tag1
jdbc:duckdb:memory:tag1
```

Testing: new test added that check that DB instance cache works
correctly with and without second colon in URL.
@staticlibs staticlibs merged commit c732b72 into duckdb:main May 30, 2025
10 checks passed
@staticlibs staticlibs deleted the memory_colon branch May 30, 2025 18:09
staticlibs added a commit to staticlibs/duckdb-java that referenced this pull request Jun 15, 2025
This is a backport of the PR duckdb#234 to v1.3-ossivalis stable branch.

Minor change, to allow passing named in-memory connections without
double colon prefix. So the following URLs will point to the same
in-memory DB:

```
jdbc:duckdb::memory:tag1
jdbc:duckdb:memory:tag1
```

Testing: new test added that check that DB instance cache works
correctly with and without second colon in URL.
staticlibs added a commit that referenced this pull request Jun 15, 2025
This is a backport of the PR #234 to v1.3-ossivalis stable branch.

Minor change, to allow passing named in-memory connections without
double colon prefix. So the following URLs will point to the same
in-memory DB:

```
jdbc:duckdb::memory:tag1
jdbc:duckdb:memory:tag1
```

Testing: new test added that check that DB instance cache works
correctly with and without second colon in URL.
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