Browse Source

Starting DbManager

Andrea Zucchelli 7 years ago
parent
commit
603c16b0a2
1 changed files with 10 additions and 0 deletions
  1. 10 0
      dbmanager.py

+ 10 - 0
dbmanager.py

@@ -0,0 +1,10 @@
+import psycopg2
+
+
+
+class DbManager(object):
+
+    def __init__(self,db_uri):
+        self.db_uri=db_uri
+        self.conn=psycopg2.connect(db_uri)
+