Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/s/t/stratum-mining-HEAD/mining/DB_Postgresql.py   stratum-mining(Download)
    def __init__(self):
        log.debug("Connecting to DB")
        self.dbh = psycopg2.connect("host='"+settings.DB_PGSQL_HOST+"' dbname='"+settings.DB_PGSQL_DBNAME+"' user='"+settings.DB_PGSQL_USER+\
                "' password='"+settings.DB_PGSQL_PASS+"'")
        # TODO -- set the schema