Skip to content

sqlite_stores

SQLite store implementations for Merlin entity models.

This module defines concrete SQLiteStoreBase subclasses for managing the persistence of core entity models used in the Merlin application. Each store is bound to a specific model and SQLite table, providing CRUD operations and automated table creation.

See also
  • merlin.backends.sqlite.sqlite_base_store: Base class
  • merlin.db_scripts.data_models: Data model definitions

SQLiteLogicalWorkerStore

Bases: SQLiteStoreBase[LogicalWorkerModel]

A SQLite-based store for managing LogicalWorkerModel objects.

Source code in merlin/backends/sqlite/sqlite_stores.py
class SQLiteLogicalWorkerStore(SQLiteStoreBase[LogicalWorkerModel]):
    """
    A SQLite-based store for managing [`LogicalWorkerModel`][db_scripts.data_models.LogicalWorkerModel]
    objects.
    """

    def __init__(self):
        """Initialize the `SQLiteLogicalWorkerStore`."""
        super().__init__("logical_worker", LogicalWorkerModel)

__init__()

Initialize the SQLiteLogicalWorkerStore.

Source code in merlin/backends/sqlite/sqlite_stores.py
def __init__(self):
    """Initialize the `SQLiteLogicalWorkerStore`."""
    super().__init__("logical_worker", LogicalWorkerModel)

SQLitePhysicalWorkerStore

Bases: SQLiteStoreBase[PhysicalWorkerModel]

A SQLite-based store for managing PhysicalWorkerModel objects.

Source code in merlin/backends/sqlite/sqlite_stores.py
class SQLitePhysicalWorkerStore(SQLiteStoreBase[PhysicalWorkerModel]):
    """
    A SQLite-based store for managing [`PhysicalWorkerModel`][db_scripts.data_models.PhysicalWorkerModel]
    objects.
    """

    def __init__(self):
        """Initialize the `SQLitePhysicalWorkerStore`."""
        super().__init__("physical_worker", PhysicalWorkerModel)

__init__()

Initialize the SQLitePhysicalWorkerStore.

Source code in merlin/backends/sqlite/sqlite_stores.py
def __init__(self):
    """Initialize the `SQLitePhysicalWorkerStore`."""
    super().__init__("physical_worker", PhysicalWorkerModel)

SQLiteRunStore

Bases: SQLiteStoreBase[RunModel]

A SQLite-based store for managing RunModel objects.

Source code in merlin/backends/sqlite/sqlite_stores.py
class SQLiteRunStore(SQLiteStoreBase[RunModel]):
    """
    A SQLite-based store for managing [`RunModel`][db_scripts.data_models.RunModel]
    objects.
    """

    def __init__(self):
        """Initialize the `SQLiteRunStore`."""
        super().__init__("run", RunModel)

__init__()

Initialize the SQLiteRunStore.

Source code in merlin/backends/sqlite/sqlite_stores.py
def __init__(self):
    """Initialize the `SQLiteRunStore`."""
    super().__init__("run", RunModel)

SQLiteStudyStore

Bases: SQLiteStoreBase[StudyModel]

A SQLite-based store for managing StudyModel objects.

Source code in merlin/backends/sqlite/sqlite_stores.py
class SQLiteStudyStore(SQLiteStoreBase[StudyModel]):
    """
    A SQLite-based store for managing [`StudyModel`][db_scripts.data_models.StudyModel]
    objects.
    """

    def __init__(self):
        """Initialize the `SQLiteStudyStore`."""
        super().__init__("study", StudyModel)

__init__()

Initialize the SQLiteStudyStore.

Source code in merlin/backends/sqlite/sqlite_stores.py
def __init__(self):
    """Initialize the `SQLiteStudyStore`."""
    super().__init__("study", StudyModel)