Skip to content

Commit

Permalink
fix: Database disconnects are now handled via SQLAlchemy `pool_pre_pi…
Browse files Browse the repository at this point in the history
…ng` parameter (#2258)

feat: Database disconnects are now handled via SQLAlchemy `pool_pre_ping` parameter
  • Loading branch information
edgarrmondragon committed Mar 6, 2024
1 parent 8052080 commit e0b120d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions singer_sdk/connectors/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ def create_engine(self) -> Engine:
return sa.create_engine(
self.sqlalchemy_url,
echo=False,
pool_pre_ping=True,
json_serializer=self.serialize_json,
json_deserializer=self.deserialize_json,
)
Expand All @@ -337,6 +338,7 @@ def create_engine(self) -> Engine:
return sa.create_engine(
self.sqlalchemy_url,
echo=False,
pool_pre_ping=True,
)

def quote(self, name: str) -> str:
Expand Down

0 comments on commit e0b120d

Please sign in to comment.