Skip to content

Instantly share code, notes, and snippets.

@mariuz
Created February 9, 2011 11:32
simplest web.py db application with firebird connection
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