Skip to content

impl: supporting quotaprojectid connection param#1605

Open
sachinpro wants to merge 1 commit into
mainfrom
set_quota_project
Open

impl: supporting quotaprojectid connection param#1605
sachinpro wants to merge 1 commit into
mainfrom
set_quota_project

Conversation

@sachinpro

@sachinpro sachinpro commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

1. Feature Implementation (QuotaProjectId)

  • Parsing: Configured the driver to parse QUOTAPROJECTID from DSN/connection string
  • Client Interface mapping: The property is mapped to the google::cloud::UserProjectOption from google-cloud-cpp.

2. Refactoring (Oauth -> ConnProps)

  • Renamed structure Oauth to ConnProps globally odbc_authentication.h to better reflect that it hosts all general connection properties, not just OAuth credentials.

3. Testing & Verification

Added VerifyQuotaProjectId under connection_test.cc to verify that when an invalid QuotaProjectId is specified, the connection is allowed but subsequent queries fail on the BigQuery service with the expected error message: Project 'projects/invalid-quota-project-12345' not found.

@sachinpro
sachinpro force-pushed the set_quota_project branch 2 times, most recently from 2c0d8b8 to d8f98cb Compare July 23, 2026 10:29
@sachinpro
sachinpro force-pushed the set_quota_project branch from d8f98cb to 2f32678 Compare July 23, 2026 10:36
@sachinpro
sachinpro marked this pull request as ready for review July 23, 2026 10:43
@sachinpro
sachinpro requested a review from a team as a code owner July 23, 2026 10:43
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