Пример #1
0
 def __init__(self,connstr=None,host=None,user=None,passwd=None,db=None,port=None):
     DbModel.__init__(self,connstr,host,user,passwd,db,port)
Пример #2
0
 def __init__(self,connstr=None,host=None,user=None,passwd=None,db=None,port=None):
     DbModel.__init__(self,connstr,host,user,passwd,db,port)
     # {'host': 'localhost','port': 6379, 'db': 0}
     connection_setup(host=self.host,port=self.port,db=self.db)