Expand description
Relational metadata persistence (SeaORM/SQLite) for ingestion, search history, and deletion.
Re-exports§
pub use ops::tutorial_seeder::TUTORIAL_BASICS_ID;pub use ops::tutorial_seeder::TUTORIAL_PYTHON_DEV_ID;pub use ops::tutorial_seeder::seed_tutorials_if_first_call;pub use ops::checkpoint::CheckpointStore;pub use ops::checkpoint::SeaOrmCheckpointStore;pub use pipelines::sea_orm_impl::SeaOrmPipelineRunRepository;pub use pipelines::NoopPipelineRunRepository;pub use pipelines::PipelineRunRepository;pub use pipelines::PipelineRunWithAttributionRow;pub use sync::SeaOrmSyncOperationRepository;pub use sync::SyncOperationRepository;pub use sync::SyncOperationRow;pub use sync::SyncOperationStatus;
Modules§
- entities
- migrator
- ops
- pipelines
- sync
sync_operationsrepository surface.- uuid_
hex - UUID ↔ 32-char hex string conversions.
Structs§
- Cost
ByModel Row - Single per-model row for
GET /api/v1/sessions/cost-by-model. Parity with the Python response items atcognee/api/v1/sessions/routers/get_sessions_router.py:241-251. - Dataset
Configuration - Dataset
Configuration Patch - Graph
Edge - Graph
Metrics - Graph
Node - Notebook
- A single row from the
notebookstable. - Notebook
Update Patch - Fields that can be updated in a
PUT /{notebook_id}call. - Pipeline
Run - Search
History Entry - Session
List Filters - Filters for
SessionLifecycleDb::list_session_rows. Field-for-field parity with Python’slist_session_rowskeyword arguments atcognee/modules/session_lifecycle/metrics.py:365-374. - Session
List Page - Paginated envelope returned by
list_session_rows. Parity with Python’sSessionListPagedataclass atmetrics.py:351-362. - Session
RowWith Status - Wraps a stored
session_recordsrow plus the read-time effective status (abandonedfor stale running rows). Mirrors Python’sSessionRowWithStatusdataclass atcognee/modules/session_lifecycle/metrics.py:336-348. - Session
Stats - Aggregate counters for
GET /api/v1/sessions/stats. Field-for-field parity with the Python response body atcognee/api/v1/sessions/routers/get_sessions_router.py:179-196. - TaskRun
Enums§
- Database
Connection - Handle a database connection depending on the backend enabled by the feature
flags. This creates a database pool. This will be
Cloneunless the feature flagmockis enabled. - Database
Error - Pipeline
RunStatus - Search
History Entry Type
Traits§
- AclDb
- Access control list database trait.
- Dataset
Config Db - Delete
Db - Ingest
Db - Notebook
Db - CRUD operations for the
notebookstable. - Search
History Db - Session
Lifecycle Db - Repository trait for
/api/v1/sessions/*. See module docs.
Functions§
- connect
- Open a connection to the relational database.
- database_
system_ label - Map the active SeaORM backend to a
cognee.db.systemstring matching the values used by the vector / graph adapters. - initialize
- Run all pending migrations on an existing connection.