SQLite Storage
For common Agent integration, extraction modes, and tool configuration, see Usage and Configuration.
Use case: Local persistence, single-node deployments, demos
SQLite stores data in a single file. It is useful when you want persistence without operating MySQL/PostgreSQL/Redis.
Configuration options:
WithTableName(name): Table name (default "memories")WithSoftDelete(enabled): Enable soft delete (default false)WithMemoryLimit(limit): Memory limit per userWithSkipDBInit(skip): Skip table initialization- Auto mode:
WithExtractor,WithAsyncMemoryNum,WithMemoryQueueSize,WithMemoryJobTimeout - Tools:
WithCustomTool,WithToolEnabled
Notes:
- This backend uses
github.com/mattn/go-sqlite3and requires CGO. - After
NewServicesucceeds, the service owns the*sql.DBand closes it inClose(). The caller must closedbif construction fails.