[CG] : add config database
This commit is contained in:
parent
df6b7140df
commit
b8b0724059
@ -7,13 +7,29 @@ from sqlalchemy.engine import URL
|
|||||||
isin_bdd = True
|
isin_bdd = True
|
||||||
# Parametres bdd CEN38 OUT
|
# Parametres bdd CEN38 OUT
|
||||||
user = 'xxxxxx'
|
user = 'xxxxxx'
|
||||||
pwd = "xxxxxx"
|
pwd = 'xxxxxx'
|
||||||
adr = 'xxxxxx'
|
adr = 'xxxxxx'
|
||||||
base = 'azalee'
|
base = 'azalee'
|
||||||
url = URL.create("postgresql+psycopg2", username=user, password=pwd, host=adr, database=base)
|
url = URL.create("postgresql+psycopg2", username=user, password=pwd, host=adr, database=base)
|
||||||
con = create_engine(url)
|
con = create_engine(url)
|
||||||
# con = create_engine('postgresql+psycopg2://{0}:{1}@{2}/{3}'.format(user,pwd,adr,base), echo=False)
|
# 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
|
# Parametres bdd SICEN OUT
|
||||||
sicen_user = 'xxxxxx'
|
sicen_user = 'xxxxxx'
|
||||||
sicen_pwd = 'xxxxxx'
|
sicen_pwd = 'xxxxxx'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user