Build

Databases

Each Kaiva Cloud database is a managed Postgres database with its own file storage, stored in the EU. Your app connects with its connection string, and the console lets you read its tables, run SQL and restore it to an earlier time.

Create a database

In the Kaiva Cloud console, open Databases, choose New database, give it a name of up to 60 characters and choose Create. Its connection string is shown once, when it is ready. Owners, admins and editors can create databases.

What each tab shows

OverviewThe host, the pooled host, the database's name and region, and how to connect your app.
TablesEach table's rows and columns, read-only, as AI clients see them.
SQLRuns SQL on the database with its owner's rights.
Agent toolsThe database's MCP server.
FilesThe database's file storage and its storage key.
UsageWhat the database used this month, and now.
SettingsThe password, deletion protection, restore and delete.

Connection strings

DirectFor servers, migrations and psql.
PooledFor serverless platforms such as Vercel, Netlify and Cloudflare, where each request opens a connection.

Both are shown once, when the database is made and when its password is rotated. Copy as .env copies a DATABASE_URL= line.

Rotate the password

On the Settings tab, choose Rotate password and confirm it's you. A new connection string is shown once. The current one stops working, so apps that use it stop connecting until they get the new one. Owners and admins can rotate the password.

Run SQL

The SQL tab runs on the database with its owner's rights: create tables, run migrations, change data. A run is one transaction: if a statement fails, its changes are not saved, except any part the SQL commits itself. Owners and admins can run SQL.

Restore to an earlier time

The Settings tab puts the whole database back as it was at a moment you choose, from the earliest moment the page shows up to a few seconds ago. Times are in your own time zone.

  1. Choose the momentUnder Restore to an earlier time, pick a date and time inside the window the page shows, then choose Restore.
  2. ConfirmType the database's name and confirm it's you.
  3. Wait a few secondsConnections to the database are interrupted for a few seconds while it restores. The page updates by itself.

Everything written after that moment is undone, for your app and for your AI clients. The state just before the restore is kept as a backup, named in the list of restores; to get it back, email [email protected] with that name.

A new database can be restored once it has an earlier state. Owners and admins can restore, while deletion protection is off.

Deletion protection

Deletion protection is on for every new database. While it is on, the database can't be deleted or restored. Owners and admins turn it off or on with the switch on the Settings tab.

Delete and recover

With deletion protection off, owners and admins can delete a database from its Settings tab: type its name and confirm it's you. Its database, its files, its MCP server, its Data API and the accounts people use to sign in to your app are deleted, and apps and AI clients that use them stop working.

For 7 days you can recover it under Recently deleted on the Databases page. After a recovery, rotate its password on the Settings tab to get a connection string.