Overview
AsyncSqliteStorage provides an asynchronous file-based SQLite storage backend using SQLAlchemy with aiosqlite. Ideal for async applications, local development, and single-node deployments.
Basic Usage
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
db_file | str | None | Path to the SQLite database file |
db_url | str | None | SQLAlchemy async database URL (e.g., sqlite+aiosqlite:///./data.db) |
db_engine | AsyncEngine | None | Pre-configured SQLAlchemy AsyncEngine |
session_table | str | None | Custom name for the session table |
user_memory_table | str | None | Custom name for the user memory table |
id | str | None | Unique identifier for this storage instance |
If no connection parameter is provided, the storage defaults to creating
./upsonic.db in the current directory.
