Functions

sqliteArtifacts

Function: sqliteArtifacts()

sqliteArtifacts(options): SqliteArtifacts

Defined in: src/artifacts/sqliteArtifacts.ts:185

An artifact store in one SQLite file — durable across restarts, crash-safe under WAL, and the natural neighbour of sqliteSessions({ file }).

Parameters

options

SqliteArtifactsOptions

Returns

SqliteArtifacts

Throws

SqliteUnavailableError when the running Node has no node:sqlite.

Throws

UnreadableArtifactStoreError when the file exists but cannot be used.

Example

const agent = Agent.create({
    provider,
    artifacts: sqliteArtifacts({ file: './data/artifacts.db' }),
  });

On this page