-
-
Save zelark/1d79c3ce63d5a4795d6d to your computer and use it in GitHub Desktop.
Revisions
-
dangayle created this gist
Feb 24, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ from bottle import route, run, install from bottle_sqlite import SQLitePlugin install(SQLitePlugin(dbfile='bottle.db')) @route('/db/') def database(db): data = db.execute('SELECT SQLITE_VERSION()').fetchone() print "SQLite version: %s" % data run(host='localhost', port=8080)