Skip to content

Conversation

piever
Copy link
Contributor

@piever piever commented Oct 2, 2024

By subtyping the DBInterface.Connection type from the julia DBInterface package we gain access to a series of additional methods, in particular the do block syntax to automatically close the cursor after the closure in the do block is executed.

I imagine not having this was an oversight as DuckDB.DB (unlike DuckDB.Connection) was already a subtype of DBInterface.Connection.

@hannes hannes merged commit e2171fa into duckdb:main Oct 2, 2024
6 checks passed
@hannes
Copy link
Member

hannes commented Oct 2, 2024

thanks!

@piever piever deleted the pv/connection branch October 2, 2024 09:35
github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Oct 16, 2024
[Dev] Fix issue where the InsertStatement::ToString call destroyed the `alias` of the ValuesList (duckdb/duckdb#14171)
[Python] Fix a bug with `python_scan_all_frames` reaching the bottom of the frame stack (duckdb/duckdb#14183)
subtype DBInterface.Connection in julia client (duckdb/duckdb#14193)
github-actions bot added a commit to duckdb/duckdb-r that referenced this pull request Oct 16, 2024
[Dev] Fix issue where the InsertStatement::ToString call destroyed the `alias` of the ValuesList (duckdb/duckdb#14171)
[Python] Fix a bug with `python_scan_all_frames` reaching the bottom of the frame stack (duckdb/duckdb#14183)
subtype DBInterface.Connection in julia client (duckdb/duckdb#14193)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
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.

2 participants