Exemple #1
0
def connect_bd():
    con = Connection(DATABASE["DB_HOST"], DATABASE["DB_SERVICE"],
                     DATABASE["DB_USER"], DATABASE["DB_PASSWORD"])
    con.connect()
    return con
Exemple #2
0
def connect_bd():
    con = Connection(DB_HOST, DB_SERVICE, DB_USER, DB_PASSWORD)
    con.connect()
    return con