Permalink
Browse files

edit

  • Loading branch information...
1 parent ca1d0bb commit 268f0c37d246799ab0a367e760fd76ad0638c769 @anandology anandology committed with anandology Aug 26, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 cookbook/multidbs.md
View
@@ -16,9 +16,9 @@ webpy 0.3 supports multiple databases by removing the database from a part of th
db1 = web.database(dbn='mysql', db='dbname1', user='foo')
db2 = web.database(dbn='mysql', db='dbname2', user='foo')
-
- print db1.select('foo', where='id=1')
- print db2.select('bar', where='id=5')
+
+ print db1.select('foo', where='id=1')
+ print db2.select('bar', where='id=5')
insert, update, delete and query methods can also be used in the similar way.

0 comments on commit 268f0c3

Please sign in to comment.