[PonyORM-list] Create or Update

Alexander Kozlovsky alexander.kozlovsky at gmail.com
Fri Jun 26 21:31:24 UTC 2015


Hi Jake!
I think that adding support for upserts is a good idea now. I'll try to
implement it.
Thanks for the suggestion!

On Thu, Jun 25, 2015 at 5:46 PM, Jake Austwick <jake.austwick at gmail.com>
wrote:

> Hi,
>
> Postgres now has support for upserts, is this a feature you would now
> consider adding to Pony?
>
> Thanks,
> ------------------
> Jake
> http://jakeaustwick.me/
>
> On Thursday, 28 August 2014 at 01:15, Jake Austwick wrote:
>
> 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
>
>
>
>
> _______________________________________________
> ponyorm-list mailing list
> ponyorm-list at ponyorm.com
> /ponyorm-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20150627/b7ffbf81/attachment.html>


More information about the ponyorm-list mailing list