Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

chore(spanner): Issue591# cursor.list tables() is returning views#1162

Merged
harshachinta merged 13 commits intogoogleapis:mainfrom
bhatt4982:Issue591#-cursor.list_tables()-is-returning-views
Aug 5, 2024
Merged

chore(spanner): Issue591# cursor.list tables() is returning views#1162
harshachinta merged 13 commits intogoogleapis:mainfrom
bhatt4982:Issue591#-cursor.list_tables()-is-returning-views

Conversation

@bhatt4982
Copy link
Copy Markdown
Contributor

chore(spanner): Issue591# cursor.list_tables() is returning views as well

  • cursor.list_tables() returns table and views by default
  • added parameter include_views with default to True
  • If include_views is false, cursor.list_tables() would return only tables(table_type = 'BASE TABLE')
  • updated test/system/test_dbapi
    Fixes cursor.list_tables() is returning views as well #591 🦕

…rg include_views

- cursor.list_tables() return table and views by default
- added another variable include_view
- returns tables and views if include_view is set to True(default)
- returns tables only if include_view is set to False
- kept default value to True otherwise it will break any existing script
… - add arg include_views"

This reverts commit e898d4ea0a69464d38f8c4d5c461a858558bd41b.
…well

  - cursor.list_tables() returns table and views by default
  - added parameter include_views with default to True
  - If include_views is false, cursor.list_tables() would return only tables(table_type = 'BASE TABLE')
@bhatt4982 bhatt4982 requested a review from a team as a code owner July 11, 2024 05:24
@bhatt4982 bhatt4982 requested a review from a team July 11, 2024 05:24
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/python-spanner API. labels Jul 11, 2024
@bhatt4982 bhatt4982 changed the title Issue591# cursor.list tables() is returning views chore(spanner): Issue591# cursor.list tables() is returning views Jul 11, 2024
@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 11, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 11, 2024
@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 11, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 11, 2024
@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 29, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 29, 2024
@harshachinta
Copy link
Copy Markdown
Contributor

@bhatt4982
Please fix failing tests and apply lint using nox -s blacken

@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2024
@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 31, 2024
…s-returning-views' into Issue591#-cursor.list_tables()-is-returning-views
@harshachinta harshachinta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 2, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 2, 2024
@harshachinta harshachinta merged commit 32f337b into googleapis:main Aug 5, 2024
@bhatt4982 bhatt4982 deleted the Issue591#-cursor.list_tables()-is-returning-views branch August 6, 2024 06:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/python-spanner API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cursor.list_tables() is returning views as well

4 participants