ifc2sql - change default database name to match default sql_type

Co-Authored-By: bsmithuk <68438529+bsmithuk@users.noreply.github.com>
This commit is contained in:
Andrej730
2025-02-28 14:39:38 +05:00
parent b1c87b1eb4
commit edfcc3f74b
+2 -2
View File
@@ -68,7 +68,7 @@ class Patcher:
host: str = "localhost", host: str = "localhost",
username: str = "root", username: str = "root",
password: str = "pass", password: str = "pass",
database: str = f"{DEFAULT_DATABASE_NAME}.db", database: str = f"{DEFAULT_DATABASE_NAME}.sqlite",
full_schema: bool = True, full_schema: bool = True,
is_strict: bool = False, is_strict: bool = False,
should_expand: bool = False, should_expand: bool = False,
@@ -82,7 +82,7 @@ class Patcher:
:param sql_type: Choose between "SQLite" or "MySQL" :param sql_type: Choose between "SQLite" or "MySQL"
:param database: Database path to save the SQL database to (already existing or not). :param database: Database path to save the SQL database to (already existing or not).
Could also be a directory, then the database will be stored Could also be a directory, then the database will be stored
using default filename (e.g. 'database.db'). using default filename (e.g. 'database.sqlite').
:filter_glob database: *.db;*.sqlite :filter_glob database: *.db;*.sqlite
:param full_schema: if True, will create tables for all IFC classes, :param full_schema: if True, will create tables for all IFC classes,
regardless if they are used or not in the dataset. If False, will regardless if they are used or not in the dataset. If False, will