Build testing prototype of an SQLite based file / entity_instance.

This commit is contained in:
Dion Moult
2023-06-16 16:16:22 +10:00
parent 438ddc17f5
commit 704e27ecca
4 changed files with 491 additions and 2 deletions
@@ -23,5 +23,7 @@ def guess_format(path: Path) -> "str | None":
"""Try to guess format using file extension"""
if path.suffix.lower() in (".ifczip", ".zip"):
return ".ifcZIP"
if path.suffix.lower() in (".ifcxml", ".xml"):
elif path.suffix.lower() in (".ifcxml", ".xml"):
return ".ifcXML"
elif path.suffix.lower() in (".ifcsqlite", ".sqlite", ".db"):
return ".ifcSQLite"