Re: PDO and database abstraction

2005-10-25 Thread Luiz Geron
This is one example where I need to use such abstraction: I have a dictionary with the fields and values to be inserted into the database, with a code like this: dic = {'field1' : 1, 'field2' : 2} #this dict comes from a Cherrypy request cur.execute('update table set field_one = :value1, field2 =

Re: PDO and database abstraction

2005-10-25 Thread Steve Holden
Gerhard Häring wrote: > Luiz Geron wrote: > >>Hi all, >>I'm testing the PDO wrapper to database modules [1] and I'm wondering >>how few things like this there are around. > > > Actually there are several Object-Relation Mappers (ORM) for Python, and > also a few other attempts to provide a mor

Re: PDO and database abstraction

2005-10-25 Thread Luiz Geron
Excuse me if I wasn't clear. I don't want to use ORMs, since I really have to execute arbitrary sql queries, and then I can't use this object mapping. I'm going to write my own wrapper like you did, it is not so difficult to do. -- http://mail.python.org/mailman/listinfo/python-list

Re: PDO and database abstraction

2005-10-25 Thread Gerhard Häring
Luiz Geron wrote: > Hi all, > I'm testing the PDO wrapper to database modules [1] and I'm wondering > how few things like this there are around. Actually there are several Object-Relation Mappers (ORM) for Python, and also a few other attempts to provide a more convenient layer on top of DB-API