Skip to content
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

fix: clarify lazy API in bindings #3131

Merged
merged 3 commits into from
Aug 2, 2024
Merged

fix: clarify lazy API in bindings #3131

merged 3 commits into from
Aug 2, 2024

Conversation

tychoish
Copy link
Collaborator

@tychoish tychoish commented Aug 2, 2024

After a discussion we had yesterday, this is more clear than "we have
this API that's lazy and you can rexecute it, unless your statement
has side effects..." which is the other way to avoid confusion and
errors, it seems.

@tychoish tychoish merged commit 95835b5 into main Aug 2, 2024
26 checks passed
@tychoish tychoish deleted the tycho/sql-ddl-exclusion branch August 2, 2024 20:22
Copy link
Contributor

@talagluck talagluck left a comment

Choose a reason for hiding this comment

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

Thanks for opening! I had a couple of questions about tests, and do want to chat about this strategy a bit more before we cut a release, since a bunch of content was made with .sql() DDL operations.

Comment on lines +8 to +9
with pytest.raises(Exception):
con.sql("select count(*) from tblsqlhelper;")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this raise an error?

Comment on lines +17 to +18
with pytest.raises(Exception):
con.sql("create table tblsqlhelper (a int, b int);")
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand why this raises, but not why the selects would.

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.

2 participants