We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94c14cc commit 488ab73Copy full SHA for 488ab73
rdflib_sqlalchemy/store.py
@@ -835,11 +835,9 @@ def _verify_store_exists(self):
835
836
"""
837
838
- inspector = reflection.Inspector.from_engine(self.engine)
839
- existing_table_names = inspector.get_table_names()
840
for table_name in self.table_names:
841
- if table_name not in existing_table_names:
842
- _logger.critical("create_all() - table %s Doesn't exist!", table_name)
+ if not self.engine.has_table(table_name):
+ _logger.critical("create_all() - table %s is not known", table_name)
843
# The database exists, but one of the tables doesn't exist
844
return CORRUPTED_STORE
845
0 commit comments