Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Set value returned by PRAGMA user_agent to r-dbi #707

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elefeint
Copy link

R clients using PRAGMA user_agent historically fell back on the default "cpp" value of duckdb_api. Example output:

duckdb/v1.1.4-dev2005(linux_amd64) cpp

This PR sets an R specific r-dbi value. I used r-dbi as an analogy to jdbc, which indicates both the language and the API. Would another duckdb_api string be more appropriate?

Example output with this PR:

duckdb/v1.1.4-dev2005(linux_amd64) r-dbi

@krlmlr krlmlr changed the title Add r-dbi user-agent chore: Add r-dbi user-agent Dec 26, 2024
@krlmlr krlmlr requested a review from hannes December 26, 2024 21:17
@krlmlr krlmlr changed the title chore: Add r-dbi user-agent chore: Set value returned by PRAGMA user_agent to r-dbi Dec 26, 2024
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