<div dir="ltr">Hi Jake!<br>I think that adding support for upserts is a good idea now. I'll try to implement it.<br>Thanks for the suggestion!</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 25, 2015 at 5:46 PM, Jake Austwick <span dir="ltr"><<a href="mailto:jake.austwick@gmail.com" target="_blank">jake.austwick@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div style="font-family:Helvetica;font-size:13px">Hi,<div><br></div><div>Postgres now has support for upserts, is this a feature you would now consider adding to Pony?</div></div>
                <div><div><br></div><div><span style="font-size:10pt">Thanks,</span></div><div><span style="font-size:10pt">------------------</span></div><div><span style="font-size:10pt">Jake</span></div><div><a href="http://jakeaustwick.me/" style="color:rgb(0,106,227);background-color:rgb(255,255,255)" target="_blank">http://jakeaustwick.me/</a></div><div></div><div></div></div><div class="HOEnZb"><div class="h5">
                 
                <p style="color:#a0a0a8">On Thursday, 28 August 2014 at 01:15, Jake Austwick wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">
                    <span><div><div><div dir="ltr">Ahh, I see the issue.<div><br></div><div>Currently I'm using the following method to achieve what I essentially would like to be able to do in one query: <a href="https://gist.github.com/JakeAustwick/ab3a18aaaf5dcdc177b8" target="_blank">https://gist.github.com/JakeAustwick/ab3a18aaaf5dcdc177b8</a></div>
<div><br></div><div>But it involves two round trips :(</div><div><br></div><div>Thanks,</div><div>Jake</div></div><div><br><br><div>On Wed, Aug 27, 2014 at 2:28 AM, Jake Austwick <span dir="ltr"><<a href="mailto:jake.austwick@gmail.com" target="_blank">jake.austwick@gmail.com</a>></span> wrote:<br><blockquote type="cite"><div>
                <div>Does Pony have functionality to create or update if existing a model in one query, or do I have to check with exists() first?</div><div><br></div><div>Example: <a href="http://stackoverflow.com/a/1218909/2175384" target="_blank">http://stackoverflow.com/a/1218909/2175384</a></div>
<div><br></div><div>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?</div><div><br></div><div>Thanks,</div><span><font color="#888888"><div>
<div>-- </div><div>Jake Austwick</div></div>
            </font></span></div></blockquote></div><br></div>
</div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>
            </div></div><br>_______________________________________________<br>
ponyorm-list mailing list<br>
<a href="mailto:ponyorm-list@ponyorm.org">ponyorm-list@ponyorm.org</a><br>
<a href="/ponyorm-list" rel="noreferrer" target="_blank">/ponyorm-list</a><br>
<br></blockquote></div><br></div>