-
Notifications
You must be signed in to change notification settings - Fork 1
x/sqlbuilder: Add QueryRow API to the InsertExecer type #44
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
Conversation
| Statement InsertStatement | ||
| } | ||
|
|
||
| type errScanner struct { |
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.
🚫 [golangci] reported by reviewdog 🐶
the error type name errScanner should conform to the xxxError format (errname)
DarkMiMolle
left a comment
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.
That helps a lot !
Unfortunately the RETURNING clause seems to not be handled.
| case 1: | ||
| if !is.isQuery { | ||
| qw.vs = append(qw.vs, is.Returning) | ||
| break |
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.
🚫 [golangci] reported by reviewdog 🐶
break with no blank line before (nlreturn)
DarkMiMolle
left a comment
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.
👌🏼
What does this PR do?
In order to leverage complex insert queries with complex returning cluases having a
QueryRowAPI should go a long wayWhat are the observable changes?
Good PR checklist
Additional Notes