469,287 Members | 2,636 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,287 developers. It's quick & easy.

Best way to process table rows from an RDBMS

I can handle making the connections and running queries, but what's the
best way to process table rows returned in Python? 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.

Is there something better than tuples for this?

Apr 7 '06 #1
1 1089
da*****@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 'o****@xiludom.gro'.split('@')])"
Apr 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by traceable1 | last post: by
7 posts views Thread by Wolfgang Kreuzer | last post: by
reply views Thread by Anonieko Ramos | last post: by
3 posts views Thread by Wayne Wengert | last post: by
17 posts views Thread by glenn.robinson | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.