rudemaps/dbmanager.py

11 lines
147 B
Python
Raw Normal View History

2017-02-09 22:56:11 +01:00
import psycopg2
class DbManager(object):
def __init__(self,db_uri):
self.db_uri=db_uri
self.conn=psycopg2.connect(db_uri)