Skip to content

Pass self and parent versions to sdk header#32

Merged
vgvoleg merged 1 commit intomainfrom
additional_info_sdk_headers
Mar 18, 2026
Merged

Pass self and parent versions to sdk header#32
vgvoleg merged 1 commit intomainfrom
additional_info_sdk_headers

Conversation

@vgvoleg
Copy link
Copy Markdown
Collaborator

@vgvoleg vgvoleg commented Mar 18, 2026

Fixes: #31

@vgvoleg vgvoleg force-pushed the additional_info_sdk_headers branch 2 times, most recently from 70436ba to 543094b Compare March 18, 2026 17:53
@vgvoleg vgvoleg requested a review from Copilot March 18, 2026 17:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds YDB SDK build-info header support so the client can always include the ydb-dbapi/<version> identifier and allow parent frameworks (e.g., SQLAlchemy) to append their own identifiers, addressing Issue #31.

Changes:

  • Inject ydb-dbapi/<VERSION> into YDB SDK _additional_sdk_headers when creating a ydb.DriverConfig.
  • Allow passing extra _additional_sdk_headers via DBAPI connection kwargs to extend the header.
  • Bump the declared ydb dependency version in pyproject.toml.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 8 comments.

File Description
ydb_dbapi/connections.py Builds and passes _additional_sdk_headers containing ydb-dbapi/<VERSION> (+ optional extras) into ydb.DriverConfig; updates kwargs typing.
pyproject.toml Updates the ydb dependency constraint to a newer version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ydb_dbapi/connections.py
Comment thread ydb_dbapi/connections.py
Comment thread ydb_dbapi/connections.py
Comment thread ydb_dbapi/connections.py Outdated
Comment thread ydb_dbapi/connections.py
Comment thread ydb_dbapi/connections.py
Comment thread ydb_dbapi/connections.py Outdated
Comment thread ydb_dbapi/connections.py
@vgvoleg vgvoleg force-pushed the additional_info_sdk_headers branch from 543094b to c86993c Compare March 18, 2026 18:10
@vgvoleg vgvoleg merged commit 559264d into main Mar 18, 2026
6 checks passed
@vgvoleg vgvoleg deleted the additional_info_sdk_headers branch March 18, 2026 18:23
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.

feature: Ability to extend x-ydb-sdk-build-info header

2 participants