[Twisted-Python] twisted adbapi question
does anyone know why is twisted.enterprise.adbapi.safe deprecated? What should I use instead?
On Tue, 15 Jul 2008 15:37:12 +0200, Vasil Vangelovski
does anyone know why is twisted.enterprise.adbapi.safe deprecated? What should I use instead?
Because it's not safe. Use bind parameters instead. Google or your preferred DB-API 2.0 module should tell you exactly how to do that. Jean-Paul
On Tue, Jul 15, 2008 at 7:42 AM, Jean-Paul Calderone
On Tue, 15 Jul 2008 15:37:12 +0200, Vasil Vangelovski
wrote: does anyone know why is twisted.enterprise.adbapi.safe deprecated? What should I use instead?
Because it's not safe. Use bind parameters instead. Google or your preferred DB-API 2.0 module should tell you exactly how to do that.
I wish "[the] DB-API 2.0 module[s]" always provided documentation. psycopg (when it had a working web site) just pointed to PEP 249. (Unless you count the short "here's an example" docs that are dated 2002) http://www.python.org/dev/peps/pep-0249/ ~ Nathan
participants (3)
-
Jean-Paul Calderone
-
Nathan
-
Vasil Vangelovski