Skip to content

Implement javax.sql.DataSource - #895

Merged
staticlibs merged 2 commits into
duckdb:mainfrom
Nnnes:main
Oct 6, 2026
Merged

staticlibs merged 2 commits into
duckdb:mainfrom
Nnnes:main

Conversation

@Nnnes

@Nnnes Nnnes commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Closes #894.

Barebones implementation of javax.sql.DataSource with a tiny test. Perhaps someday the unused username/password and login timeout methods can integrate with Quack. I'm not sure how unwrap() and isWrapperFor() are used normally, but the code is more or less functionally identical to several other JDBC implementations I looked at.

@Nnnes

Nnnes commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

whoops, shouldn't have walked away so quickly

@Nnnes

Nnnes commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

I don't think there's much I can do about that one

@staticlibs

Copy link
Copy Markdown
Member

I don't think there's much I can do about that one

Yep, there is an ongoing GH Actions outage, I'll restart the CI manually a bit later.

@staticlibs staticlibs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Looks good to me.

@staticlibs
staticlibs merged commit d743eab into duckdb:main Oct 6, 2026
45 of 48 checks passed
staticlibs added a commit that referenced this pull request Oct 6, 2026
This is a backport of the PR #895 to `v2.0-cyanoptera` branch.

Co-Authored-By: Nnnes <N@nnn.es>
@staticlibs

Copy link
Copy Markdown
Member

A snapshot with this changes included can be used from this repo:

 <dependency>
    <groupId>org.duckdb</groupId>
    <artifactId>duckdb_jdbc</artifactId>
    <version>2.0.0-dev-ccdc7fe</version>
</dependency>
<repository>
    <id>duckdb</id>
    <url>https://duckdb-staging.duckdb.org/duckdb/duckdb-java/maven/</url>
</repository>

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.

javax.sql.DataSource not implemented

2 participants