Skip to main content

Database

Talos stores API key data in a relational database. The db.dsn scheme selects the backend driver.

Supported backends

BackendEditionDSN schemeUse case
SQLiteOSSsqlite://Development, single-node
PostgreSQLCommercialpostgres://Recommended production
MySQLCommercialmysql://Production with MySQL infrastructure
CockroachDBCommercialcockroach://Multi-region, distributed

The commercial edition also offers SQLite with multi-tenant isolation and concurrent reads during writes. See SQLite for details.

Configuration

db:
dsn: "sqlite:///var/lib/talos/data.db"

The db.dsn setting requires a server restart to take effect.

Migrations

Run talos migrate up before first use and after each upgrade. See Migrations.