hello

I am currently preparing an article about SQLAlchemy
for a german software development magazine (probably
to be published in december).

I want to ask some questions so I can explain this
better to my readers:

1)
there is code like this:
mary2 = query.get_by(user_name='Mary') # from the docs

would it be possible with python (or would it make
sense) to write 
mary2 = query.get_by_user_name('Mary')

this is the way Ruby's Active Record does it.
don't get me wrong. I do not say that the Ruby
approach is better or worse. I just want to understand
why SQLAlchemy works the way it works so can write a
very good article about it.

2)
another example from the docs:
print query.select(User.c.user_id==3)

would it be possible to leave out the "c" columns
object ? maybe one could hide it inside the User
class. example:
print query.select(User.user_id==3)

again. no criticism. just curios.

SQLAlchemy is by far my favourite solution for
database programming in Python and I am happy to be
able to write an article about it. 

best regards

Markus












--
Markus Jais
http://www.mjais.de


        
                
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to