Skip to main content

Database

Talos stores API key data in a relational database. The backend is determined by the DSN scheme in db.dsn.

Supported backends

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

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.