Skip to content

Commit

Permalink
Merge branch 'cache_sql_columns_and_schemas' of https://github.com/me…
Browse files Browse the repository at this point in the history
…ltano/sdk into cache_sql_columns_and_schemas
  • Loading branch information
pnadolny13 committed Oct 3, 2023
2 parents e0451b6 + 61413ee commit 3e2859c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion singer_sdk/connectors/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,9 @@ def schema_exists(self, schema_name: str) -> bool:
True if the database schema exists, False if not.
"""
if schema_name not in self._schema_cache:
self._schema_cache = set(sqlalchemy.inspect(self._engine).get_schema_names())
self._schema_cache = set(
sqlalchemy.inspect(self._engine).get_schema_names()
)

return schema_name in self._schema_cache

Expand Down

0 comments on commit 3e2859c

Please # to comment.