You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class SQLiteSchemaExtractor:
...
if is_connection_required:
if not os.path.isfile(database_source):
raise OSError(f"file not found: {database_source}")
if isinstance(database_source, SimpleSQLite) is true and database_source.is_connected() is false , then is_connection_required is true.
And an exception will be thrown because the SimpleSQLite class does not have a __fspath__ method.
Wouldn't it be better to add a __fspath__ method?
in core.py
class SimpleSQLite:
def __fspath__(self) -> str:
return self.__database_path
The text was updated successfully, but these errors were encountered:
_extractor.py for sqliteschema module
if isinstance(database_source, SimpleSQLite) is true and database_source.is_connected() is false , then is_connection_required is true.
And an exception will be thrown because the SimpleSQLite class does not have a __fspath__ method.
Wouldn't it be better to add a __fspath__ method?
in core.py
The text was updated successfully, but these errors were encountered: