Skip to content

Conversation

@AlexisMontagne
Copy link
Member

What does this PR do?

In order to leverage complex insert queries with complex returning cluases having a QueryRow API should go a long way

What are the observable changes?

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • x ] Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Properly labeled

Additional Notes

@AlexisMontagne AlexisMontagne self-assigned this Apr 23, 2025
@AlexisMontagne AlexisMontagne requested a review from a team as a code owner April 23, 2025 19:36
@AlexisMontagne AlexisMontagne requested review from FlorianRichardUPF and pauloestrella1994 and removed request for a team April 23, 2025 19:36
Statement InsertStatement
}

type errScanner struct {

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)

Copy link

@DarkMiMolle DarkMiMolle left a 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

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)

Copy link

@DarkMiMolle DarkMiMolle left a comment

Choose a reason for hiding this comment

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

👌🏼

@AlexisMontagne AlexisMontagne merged commit 1647b1a into master Apr 24, 2025
3 of 4 checks passed
@AlexisMontagne AlexisMontagne deleted the am/insert-query-row branch April 24, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants