Skip to main content
The praisonai-ts CLI provides the db command for database adapter management and testing.

Quick Start

1

Simple Usage

2

With Configuration


Commands Overview

Connect to Database

Test database connectivity:
Example Output:
JSON Output:

Test Database Operations

Run a full database test:
Example Output:

List Adapters

View available database adapters:
Example Output:
JSON Output:
The listing shows which adapter factories exist — not which back the Agent’s session store. Only sqlite implements the full DbAdapter contract (sessions, messages, runs) and is durable across restarts. postgres and redis are remote-only key/value transports (Neon HTTP, Upstash REST); db("postgres://…") and db("redis://…") throw when used as an Agent session store. See Database.

Database Info

Show database feature information:

Supported Database URLs

SDK Usage

db("sqlite:./data.db") returns a real, working SqliteDbAdapter that implements the full session/message/run contract. The createUpstashRedis / createNeonPostgres factories return remote-only key/value transports — not DbAdapters.
For more details, see the Database SDK documentation.

Database

SDK persistence

Cache CLI

Cache management