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
Connection strings
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.
- Choose the momentUnder Restore to an earlier time, pick a date and time inside the window the page shows, then choose Restore.
- ConfirmType the database's name and confirm it's you.
- 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.