StaticgetReturns a singleton instance of SQLiteConnector. If an instance doesn't exist, creates one with the given parameters.
The path to the SQLite database file. Defaults to ':memory:' for in-memory database.
Optionaltimeout: numberOptional timeout value in milliseconds
The singleton SQLiteConnector instance
SQLiteConnector implements a singleton pattern for SQLite database connections. This class manages database connections and ensures only one instance exists for the cache.
Advanced usage
The singleton is exposed to allow advanced developers to perform direct reads, diagnostics, or custom actions on the underlying SQLite database, while ensuring only one connection exists.
Warning:
This design follows the SOLID Open/Closed principle: the cache is extensible for advanced needs without modifying its core logic, but remains safe for standard usage.
SQLiteConnector
Example
Throws
If the SQLite database connection cannot be established