Created
February 9, 2011 11:32
simplest web.py db application with firebird connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import web | |
db=web.database(dbn='firebird',db='localhost:/tmp/test.fdb',user='sysdba',password='masterkey') | |
#this is a most to open transaction or else you will get cursor not open | |
db.transaction() | |
result=db.query("select * from person") | |
#result=db.select('person') | |
print result[0] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment