Skip to content

Pass lib version to sdk header#107

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

Pass lib version to sdk header#107
vgvoleg merged 1 commit intomainfrom
additional_sdk_info

Conversation

@vgvoleg
Copy link
Copy Markdown
Collaborator

@vgvoleg vgvoleg commented Mar 18, 2026

Fixes: #106

@vgvoleg vgvoleg requested a review from Copilot March 18, 2026 19:00
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

This PR addresses issue #106 by propagating the ydb-sqlalchemy library version into the YDB SDK “build info” header via connection arguments, and bumps minimum ydb / ydb-dbapi versions to those that support the feature.

Changes:

  • Add _additional_sdk_headers to dialect create_connect_args with ydb-sqlalchemy/<VERSION>.
  • Update requirements.txt minimum versions for ydb and ydb-dbapi.

Reviewed changes

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

File Description
ydb_sqlalchemy/sqlalchemy/__init__.py Injects the library version into additional SDK headers during connection creation.
requirements.txt Raises minimum YDB SDK/DBAPI versions needed for the new header behavior.

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

Comment thread ydb_sqlalchemy/sqlalchemy/__init__.py
Comment thread ydb_sqlalchemy/sqlalchemy/__init__.py Outdated
Comment thread ydb_sqlalchemy/sqlalchemy/__init__.py
@vgvoleg vgvoleg force-pushed the additional_sdk_info branch from 1f17f4f to 651077e Compare March 18, 2026 19:05
@vgvoleg vgvoleg merged commit 92ea822 into main Mar 18, 2026
6 checks passed
@vgvoleg vgvoleg deleted the additional_sdk_info branch March 18, 2026 19:08
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 pass lib version to x-ydb-sdk-build-info grpc header

2 participants