Best way to process table rows from an RDBMS
bruno at modulix
onurb at xiludom.gro
Fri Apr 7 08:45:44 EDT 2006
dananrg at yahoo.com wrote:
> I can handle making the connections and running queries, but what's the
> best way to process table rows returned in Python?
depends on what you want to do with them.
> What about turning a
> table definition into an object? Just looking for ways to be efficient,
> since I know I will be hitting the same external RDBMS from Python and
> regularly processing a fixed set of tables with a certain fixed set of
> attribute columns.
Before ReinventingTheSquareWheel(tm), you may want to have a look at
existing Python ORMs like SQLObjects or SQLAlchemy...
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list