Re: [SQLObject] ezSqlObject convenience wrapper
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Brad B. <br...@bb...> - 2004-03-07 18:07:43
|
On samedi, mars 6, 2004, at 03:17 Canada/Eastern, David McNab wrote: > Hi, > > I've just put up a module called EzSqlObject, which wraps SQLObject's > connection, table and results classes, and adds a few conveniences: > > * .tables attribute in connection objects, lists out the tables in > the database > * .columns attribute in table objects, lists the columns in the table > * automatic retrieval of existing table structure from database (if > not provided as a table class) > * tables of a database available as attributes of connection object > * Can fetch individual rows from a table or resultset via array index > * automatic logging > * dump() method in connection, table and results objects > * len() works for table and results objects > * doQuery() method for connection objects It doesn't make any sense to create another module for this. As well, some of these features don't make sense (e.g. I'm not sure what len() on a table is supposed to tell me [number of columns perhaps?], but len() on a SelectResults is already done by using the count() method on an instance.) Just ask Ian for checkin privileges (if you don't already have), write unit tests to demonstrate how you want your new features to work, and add them and the code that passes those tests to SQLObject directly. -- Brad Bollenbach |