[PonyORM-list] Create or Update
jake.austwick at gmail.com
Thu Jun 25 14:46:55 UTC 2015
Postgres now has support for upserts, is this a feature you would now consider adding to Pony?
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 :(
> 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...
More information about the ponyorm-list