Skip to content

Ability to get view names #23

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

Merged
merged 1 commit into from
May 21, 2025
Merged

Ability to get view names #23

merged 1 commit into from
May 21, 2025

Conversation

vgvoleg
Copy link
Collaborator

@vgvoleg vgvoleg commented May 21, 2025

No description provided.

@vgvoleg vgvoleg requested a review from Copilot May 21, 2025 09:15
Copy link

@Copilot 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 adds support for retrieving view names from the database connection by introducing both synchronous and asynchronous get_view_names methods.

  • Refactored table name retrieval into a generic _get_entity_names method that accepts an entity type parameter.
  • Added new tests for get_view_names and updated dependency versions and linter settings.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

File Description
ydb_dbapi/connections.py Added sync/async get_view_names methods and refactored _get_table_names into _get_entity_names for tables and views.
tests/test_connections.py Included tests to verify the retrieval of view names.
pyproject.toml Updated ydb dependency version and added examples files to lint ignore.
examples/basic_example.py Provided a basic example demonstrating usage of the new get_view_names API.

@vgvoleg vgvoleg merged commit 808109f into main May 21, 2025
6 checks passed
@vgvoleg vgvoleg deleted the get_view_names branch May 21, 2025 09:27
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