Maciej Wisniowski wrote:
It works something like this::
(...)
If in the folder 'sql/Userstuff' you have a file called
'select_users.sql' you will the be able to just run:
# select users:
print SQLUser.select_users()
# same but first printed the final SQL used
print
I've developed a little module that makes it really easy to plug in .sql
files into a python product class as ZSQLMethods. It's extremely easy to
use and doesn't require any CMF or ZODB stuff. It also has support for
memcache for those of you with slow db queries that you need to repeat.
It
It works something like this::
(...)
If in the folder 'sql/Userstuff' you have a file called
'select_users.sql' you will the be able to just run:
# select users:
print SQLUser.select_users()
# same but first printed the final SQL used
print SQLUser.select_users(debug__=True)
# save