@cognidesk/storage¶
Built-in storage adapters for conversation persistence.
Auto-generated from source
The complete type reference below is generated from TypeScript declarations. Run pnpm docs:generate to regenerate.
Main exports¶
import { createSqliteStorage } from "@cognidesk/storage/sqlite";
import { createPostgresStorage } from "@cognidesk/storage/postgres";
The root @cognidesk/storage import exposes shared storage contract types. Provider factories live on subpaths so applications only load the database driver they use. SQLite requires @libsql/client; Postgres requires pg.
SQLite storage¶
Postgres storage¶
Conformance¶
Third-party adapters can use @cognidesk/storage/conformance to verify that they satisfy the StorageAdapter contract.