[PonyORM-list] Create or Update
Jake Austwick
jake.austwick at gmail.com
Thu Jun 25 14:46:55 UTC 2015
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 (mailto: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/20150625/f37f3d67/attachment.html>
More information about the ponyorm-list
mailing list