[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
|
||||
# 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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user