优化端口
This commit is contained in:
@@ -14,9 +14,9 @@ class PgsqlDb:
|
||||
|
||||
def __init__(self,db):
|
||||
if db == 'warehouse':
|
||||
url=f"postgresql+psycopg2://postgres:postgres@192.168.0.236:5432/{db}"
|
||||
url=f"postgresql+psycopg2://postgres:postgres@192.168.0.236:5433/{db}"
|
||||
elif db == 'fangjia':
|
||||
url = f"postgresql+psycopg2://postgres:Goojia123456@192.168.0.235:5432/{db}"
|
||||
url = f"postgresql+psycopg2://postgres:Goojia123456@192.168.0.235:5433/{db}"
|
||||
self.engine = create_engine(url, echo=False,client_encoding='utf-8')
|
||||
@retry(stop_max_attempt_number=3, wait_random_min=1000, wait_random_max=3000)
|
||||
def read(self, sql) -> DataFrame:
|
||||
|
||||
Reference in New Issue
Block a user