From b8b072405942e537fe44d412d73d386ef9565af8 Mon Sep 17 00:00:00 2001 From: Colas Geier Date: Thu, 26 Oct 2023 15:38:22 +0200 Subject: [PATCH] [CG] : add config database --- pycen/params.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pycen/params.py b/pycen/params.py index 564916d..82553c5 100644 --- a/pycen/params.py +++ b/pycen/params.py @@ -7,13 +7,29 @@ from sqlalchemy.engine import URL isin_bdd = True # Parametres bdd CEN38 OUT user = 'xxxxxx' -pwd = "xxxxxx" +pwd = 'xxxxxx' adr = 'xxxxxx' base = 'azalee' url = URL.create("postgresql+psycopg2", username=user, password=pwd, host=adr, database=base) con = create_engine(url) # con = create_engine('postgresql+psycopg2://{0}:{1}@{2}/{3}'.format(user,pwd,adr,base), echo=False) +# Parametres bdd CADASTRE +cad_user = 'xxxxxx' +cad_pwd = 'xxxxxx' +cad_adr = 'xxxxxx' +cad_base = 'cadastre' +cad_url = URL.create("postgresql+psycopg2", username=cad_user, password=cad_pwd, host=cad_adr, database=cad_base) +con_cad = create_engine(cad_url) + +# Parametres bdd RHOMEO +rho_user = 'xxxxxx' +rho_pwd = 'xxxxxx' +rho_adr = 'xxxxxx' +rho_base = 'rhomeo' +rho_url = URL.create("postgresql+psycopg2", username=cad_user, password=cad_pwd, host=cad_adr, database=cad_base) +con_rho = create_engine(rho_url) + # Parametres bdd SICEN OUT sicen_user = 'xxxxxx' sicen_pwd = 'xxxxxx'