Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cfe4803609
Fetching contributors…

Cannot retrieve contributors at this time

executable file 11 lines (8 sloc) 0.303 kb
#!/usr/bin/env python
# open db connection
import cgitb; cgitb.enable()
# connect to the database, warning: it won't get closed automatically.
def dbconnect():
import psycopg2 as dbapi2
db = dbapi2.connect (database="worqu", user="worqu", password="worqu", host="localhost", port="5432")
return db
Jump to Line
Something went wrong with that request. Please try again.