Replies: 2 comments 5 replies
-
Yeah, it's a good point. We don't have an API for this yet, but I would like to add it. Using this might be sufficient: import copy
copy.deepcopy(my_query) But I haven't tested it much. |
Beta Was this translation helpful? Give feedback.
5 replies
-
Piccolo ORM doesn't support .copy() on query objects, but you can use Python's copy module:
Alternatively, use a function to return a fresh query each time for better control. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am working on a pagination library, and for me it will be great to be able to copy instance of query.
Is there an existing API that allows to do it? Unfortunately, I didn't find anything(
Ideally, it can look like this:
Beta Was this translation helpful? Give feedback.
All reactions