saferoad.database module
- class saferoad.database.DataBase[source]
Bases:
objectClass for managing a DuckDB database connection.
This class provides methods to set up a DuckDB database connection, and run SQL queries.
- init_database_path()[source]
Initialize the database path.
This method creates a directory for the database if it does not exist and generates a filename based on the current date and time.
- Returns:
The path to the DuckDB database file.
- Return type:
str