[PonyORM-list] Create or Update

Jake Austwick jake.austwick at gmail.com
Thu Aug 28 00:15:14 UTC 2014


Ahh, I see the issue.

Currently I'm using the following method to achieve what I essentially
would like to be able to do in one query:
https://gist.github.com/JakeAustwick/ab3a18aaaf5dcdc177b8

But it involves two round trips :(

Thanks,
Jake


On Wed, Aug 27, 2014 at 2:28 AM, Jake Austwick <jake.austwick at gmail.com>
wrote:

> Does Pony have functionality to create or update if existing a model in
> one query, or do I have to check with exists() first?
>
> Example: http://stackoverflow.com/a/1218909/2175384
>
> I couldn't find a way to do this in one query in the documentation, and if
> it currently isn't in there, is it a planned feature?
>
> Thanks,
> --
> Jake Austwick
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20140828/ca1094bd/attachment.html>


More information about the ponyorm-list mailing list