I&#39;ve been having some luck with sAsync(<a href="http://foss.eepatents.com/sAsync/">http://foss.eepatents.com/sAsync/</a>) which gives a limited subset of the SQL Alchemy API with a twisted compatible interface.&nbsp; <br><br>
Andy Fundinger<br><br><div><span class="gmail_quote">On 9/15/07, <b class="gmail_sendername">Jean-Paul Calderone</b> &lt;<a href="mailto:exarkun@divmod.com">exarkun@divmod.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sat, 15 Sep 2007 14:41:34 +0200, Stefan Arentz &lt;<a href="mailto:stefan.arentz@gmail.com">stefan.arentz@gmail.com</a>&gt; wrote:<br>&gt;I&#39;m interested in using Twisted for a simple XML-RPC service that<br>&gt;needs to talk to either PostgreSQL or MySQL. (I would prefer PG).
<br>&gt;<br>&gt;I&#39;ve got the XML-RPC part under control, that is fairly simple with<br>&gt;Twisted Web. But what would I use for the database part? What is<br>&gt;generally the easy way to do database access with Twisted?
<br>&gt;<br>&gt;Are there ORM solutions that are compatible with Twisted? It would be<br>&gt;nice if I could use something like SQLObject instead of raw queries.<br>&gt;<br>&gt;I&#39;m not looking for a complete solution here. Just trying to
<br>&gt;understand what is usually done in Twisted land.<br>&gt;<br><br>The only solution bundled with Twisted is twisted.enterprise.adbapi (well,<br>you might see some other stuff in twisted.enterprise, but I wouldn&#39;t suggest
<br>using any of it).&nbsp;&nbsp;adbapi is a very simple asynchronous interpretation of<br>DB-API.<br><br>This isn&#39;t anything like the ORM solution you were hoping for, though.<br>So far as I understand it, the typical API presented by an ORM is quite
<br>unfriendly toward integration with a Twisted-style application.&nbsp;&nbsp;Someone<br>else may know of some work which has been done to address this.<br><br>For what it&#39;s worth, I do use an ORM with Twisted applications (Axiom) -
<br>but I use it only with SQLite: it presents a synchronous API, blocking for<br>as long as necessary to satisfy a query, which is typically not long enough<br>to be problematic for my applications.<br><br>Jean-Paul<br><br>
_______________________________________________<br>Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br></blockquote></div><br><br clear="all"><br>-- <br>Blog:&nbsp;&nbsp;<a href="http://channel3b.wordpress.com">http://channel3b.wordpress.com</a><br>Second Life Name:&nbsp;&nbsp;Ciemaar Flintoff
<br><br>I am a sig Virus. Please put me in your sig so that I can continue to replicate.