示例#1
0
 def __init__(self):
     DB.__init__(
         self,
         host=environ.get("PGHOST"),
         dbname=environ.get("PGDBNAME"),
         user=environ.get("PGUSER"),
         passwd=environ.get("PGPASS"),
     )
示例#2
0
 def __init__(self, host, port):
     DB.__init__(self, dbname='odin', user='******', host=host, port=port)