nirs4all.pipeline.storage.store_schema module

DuckDB schema definitions for the workspace store.

Defines the seven-table schema used by WorkspaceStore: runs, pipelines, chains, predictions, prediction_arrays, artifacts, and logs.

The schema uses IF NOT EXISTS for all DDL statements, making create_schema() safe to call repeatedly (idempotent).

nirs4all.pipeline.storage.store_schema.create_schema(conn: DuckDBPyConnection) None[source]

Create all tables and indexes in the given DuckDB connection.

Safe to call multiple times – every DDL statement uses IF NOT EXISTS.

Parameters:

conn – An open DuckDB connection.