ooai_persistence.contextΒΆ

Context managers for persistence resources.

Functions

async_persistence_context(settings, *[, ...])

Yield an asynchronous persistence bundle with managed cleanup.

async_store_context(settings, *[, registry])

Yield only the configured asynchronous store resource.

open_memory_persistence(*[, graph_cache, ...])

Open an asynchronous in-memory persistence bundle.

open_memory_store()

Open an asynchronous in-memory store.

open_persistence(settings, *[, registry])

Yield an asynchronous persistence bundle with managed cleanup.

open_postgres_persistence([uri, host, port, ...])

Open an asynchronous Postgres-backed persistence bundle.

open_postgres_store([uri, host, port, ...])

Open an asynchronous Postgres-backed store.

open_sqlite_persistence([path, registry])

Open an asynchronous SQLite-backed persistence bundle.

open_sqlite_store([path])

Open an asynchronous SQLite-backed store.

open_store(settings, *[, registry])

Yield only the configured asynchronous store resource.

open_sync_memory_persistence(*[, ...])

Open a synchronous in-memory persistence bundle.

open_sync_memory_store()

Open a synchronous in-memory store.

open_sync_persistence(settings, *[, registry])

Yield a synchronous persistence bundle with managed cleanup.

open_sync_postgres_persistence([uri, host, ...])

Open a synchronous Postgres-backed persistence bundle.

open_sync_postgres_store([uri, host, port, ...])

Open a synchronous Postgres-backed store.

open_sync_sqlite_persistence([path, registry])

Open a synchronous SQLite-backed persistence bundle.

open_sync_sqlite_store([path])

Open a synchronous SQLite-backed store.

open_sync_store(settings, *[, registry])

Yield only the configured synchronous store resource.

persistence_context(settings, *[, registry])

Yield a synchronous persistence bundle with managed cleanup.

store_context(settings, *[, registry])

Yield only the configured synchronous store resource.