Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Support
returning
inrows_*.tbl_dbi()
#607Support
returning
inrows_*.tbl_dbi()
#607Changes from 4 commits
40f6580
a13f244
1bea8cf
2a2348b
c3aa443
788eeaf
bdfd46e
b6601ea
daebf80
fceb0b5
98c1c9c
7bb0d74
0643a53
ca1631c
2a2f602
eff86b3
a97db6d
8e8b44d
33e1040
aff76c8
6381d55
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to pass
returning
to thesql_()
methods?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
returning
is not an argument of thesql_()
methods then I would rather have something likeand export
sql_add_returning()
(this should be exported to complete the other sql functions). To me this feels like a more user-friendly interface. What do you think?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need an
sql_returning()
generic anyway -- to special-case both the clause and the way column expressions are constructed (to work around that RSQLite bug). I don't mindsql_add_returning()
as an equivalent to thepaste0()
call in my proposal.Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.