close
Skip to content

feat(python/adbc_driver_manager): add cursor() arg to set options#2589

Merged
lidavidm merged 1 commit into
apache:mainfrom
lidavidm:gh-2146
Mar 10, 2025
Merged

feat(python/adbc_driver_manager): add cursor() arg to set options#2589
lidavidm merged 1 commit into
apache:mainfrom
lidavidm:gh-2146

Conversation

@lidavidm
Copy link
Copy Markdown
Member

  • Add a keyword-only argument to set statement options directly when creating a cursor, which makes it a little clearer what's going on.
  • Allow using True and False directly as option values (they will get converted to ENABLED and DISABLED, respectively).
  • Add the use_copy option to the PostgreSQL options enum.
  • Add an example of this with PostgreSQL.

Fixes #2093.
Fixes #2146.

- Add a keyword-only argument to set statement options directly
  when creating a cursor, which makes it a little clearer what's
  going on.
- Allow using True and False directly as option values (they will
  get converted to ENABLED and DISABLED, respectively).
- Add the `use_copy` option to the PostgreSQL options enum.
- Add an example of this with PostgreSQL.

Fixes apache#2093.
Fixes apache#2146.
@lidavidm lidavidm marked this pull request as ready for review March 10, 2025 04:54
@github-actions github-actions Bot added this to the ADBC Libraries 18 milestone Mar 10, 2025
Copy link
Copy Markdown
Member

@zeroshade zeroshade left a comment

Choose a reason for hiding this comment

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

LGTM in general, though we should really fix the failing CI

@lidavidm lidavidm merged commit c324fae into apache:main Mar 10, 2025
@lidavidm lidavidm deleted the gh-2146 branch March 10, 2025 22:37
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.

adbc.snowflake.statement.* options are not effective ["python"] Support SHOW command

2 participants