mongoose.store.sqlite

class mongoose.store.sqlite.SqliteStore(db_path=PosixPath('mongoose.db'), history_config=None)[source]

Bases: object

Storage implementation for SQLite database.

Subscribes to all topics and persists data using SQLAlchemy models.

__init__(db_path=PosixPath('mongoose.db'), history_config=None)[source]

Initialize the SqliteStore.

Parameters:
  • db_path (Path) – Path to the SQLite database file. Defaults to “mongoose.db”.

  • history_config (HistoryConfiguration) – Configuration for history limiting.

start()[source]

Start the storage worker thread.

This method launches a background daemon thread that runs the _run loop to process and persist data from the subscribed topics.