<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">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 class="gmail_extra"><br><br><div class="gmail_quote">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 class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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 class="HOEnZb"><font color="#888888"><div>
<div>-- </div><div>Jake Austwick</div><div></div><div></div></div>
</font></span></blockquote></div><br></div>