Skip to content

Clone() #342

Answered by vmihailenco
sergolius asked this question in Q&A
Discussion options

You must be logged in to vote

It was a constant source of bugs in go-pg and in Bun we have even more queries to support, but I would accept a PR adding Clone method.

The recommended way is to extract query building into a method and call it whenever you need a duplicate.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sergolius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants