From 603c16b0a29cf6cd6057ee5d4fea7128ee4a7a9b Mon Sep 17 00:00:00 2001 From: Andrea Zucchelli Date: Thu, 9 Feb 2017 22:56:11 +0100 Subject: [PATCH] Starting DbManager --- dbmanager.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dbmanager.py diff --git a/dbmanager.py b/dbmanager.py new file mode 100644 index 0000000..034b4c6 --- /dev/null +++ b/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) +