review ident

This commit is contained in:
Colas Geier 2024-07-26 11:36:07 +02:00
parent cca3c38120
commit 9aabd4d543

View File

@ -2,14 +2,15 @@ from sqlalchemy import create_engine, text,PrimaryKeyConstraint
from geoalchemy2 import Geometry
import geopandas as gpd
from os import listdir,path
from pycen import con_rho as con
user_cad = 'cgeier' # utilisateur de connexion à la bdd
pwd_cad = 'adm1n*bdCen' # mot de passe de la bdd
adr_cad = '91.134.194.221' # adresse ip de la bdd
port_cad = '5432' # port de la bdd
base_cad = 'rhomeo' # nom de la bdd
# user_cad = 'xxxxxxx' # utilisateur de connexion à la bdd
# pwd_cad = 'xxxxxxx' # mot de passe de la bdd
# adr_cad = '91.134.194.221' # adresse ip de la bdd
# port_cad = '5432' # port de la bdd
# base_cad = 'rhomeo' # nom de la bdd
schema_cad = 'bdtopo3'
con = create_engine('postgresql+psycopg2://{0}:{1}@{2}:{3}/{4}'.format(user_cad,pwd_cad,adr_cad,port_cad,base_cad), echo=False)
# con = create_engine('postgresql+psycopg2://{0}:{1}@{2}:{3}/{4}'.format(user_cad,pwd_cad,adr_cad,port_cad,base_cad), echo=False)
def get_list_table(con,sch="public"):