Skip to content

Conversation

taniabogatsch
Copy link
Contributor

This PR supports setting the duckdb database file type during ATTACH. This avoids acquiring a file handle to check the header to determine the file type.

ATTACH 'my.db' (TYPE DUCKDB);

I also tidied up the code a bit more.

Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@github-actions github-actions bot marked this pull request as draft November 21, 2023 15:32
@taniabogatsch taniabogatsch marked this pull request as ready for review November 21, 2023 15:33
@Mytherin Mytherin merged commit 9898183 into duckdb:main Nov 21, 2023
@taniabogatsch taniabogatsch deleted the duckdb-type branch November 22, 2023 11:30
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Dec 11, 2023
Merge pull request duckdb/duckdb#9747 from taniabogatsch/duckdb-type
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