Docs / Sarpius DB

Sarpius DB

Sarpius DB gives your Project managed databases without leaving the platform. Provision PostgreSQL, Redis, or MariaDB, attach one to an app, and its connection details are injected as environment variables and the app is redeployed automatically. No connection strings to copy by hand, no separate provider to wire up.

What Sarpius DB is

Sarpius DB is the managed-database layer of Sarpius. Each database you create is provisioned for you, kept online, and made reachable from your apps over TLS. You never run a server: you pick an engine and a tier, give the database a name, and optionally attach it to one of your apps so the platform wires the connection for you.

A database can live on its own, or it can be linked to an app. When linked, Sarpius DB injects the connection variables into that app and triggers a redeploy so the running container picks them up. This is the magic-first path: the app gets a working database connection without you editing any environment variables yourself.

  • Three engines: PostgreSQL (relational, full SQL), Redis (in-memory key/value plus pub/sub), and MariaDB (MySQL-compatible relational).
  • Two tiers: a free shared tier and a paid dedicated tier billed per minute from your wallet.
  • Automatic env-var injection and redeploy when a database is linked to an app.
  • TLS connections, per-user credentials, and password rotation from the console.

Engines and tiers

The engine you choose determines both what the database can do and which tiers are available. PostgreSQL offers a free shared tier and a dedicated tier. Redis and MariaDB are dedicated-only: there is no free shared path for them, and the create dialog snaps the tier to dedicated when you pick either one.

  • PostgreSQL, free (shared cluster): 500 MB storage and 5 concurrent connections. Good for getting started.
  • PostgreSQL, dedicated: your own Postgres 16 container, 10 GB storage included then EUR 0.10 per GB, 1 vCPU / 1 GB RAM, from EUR 2.99/mo.
  • Redis, dedicated: 512 MB included, persistence is opt-in and can be toggled from the database settings.
  • MariaDB, dedicated: 10 GB included, from EUR 2.99/mo.
Note

The free shared PostgreSQL tier costs nothing. Dedicated databases run in their own container and are billed per minute from your wallet, so they start charging as soon as the container comes up and stop when you delete the database.

Create a database

Open Sarpius DB from the console and use New database. The create dialog walks you through engine, tier, name, and an optional app to attach.

  1. Pick an engine: PostgreSQL, Redis, or MariaDB. Redis and MariaDB force the dedicated tier.
  2. Pick a tier: Free (shared) is available for PostgreSQL only; Dedicated is available for every engine.
  3. Give the database a name. It is prefixed per user (u{user_id}_) so names never collide across accounts.
  4. Optionally attach it to an app now, and optionally set an env-var prefix if you plan to link more than one database to the same app.
  5. Submit. Provisioning is queued and the card shows a provisioning status; a dedicated container usually takes about one to two minutes to come up.
Note

You can also create a database pre-attached to an app straight from that app: the Sarpius Launch app detail has a New database action that deep-links into Sarpius DB with the engine and app pre-selected.

Connecting to your database

If you linked the database to an app, your app already has the connection variables and there is usually nothing else to do. To connect from your own machine or a tool, open the database in the console and reveal its credentials: host, port, database name, role, and password. Dedicated databases accept any standard client over TLS.

For PostgreSQL, connect with sslmode=require. The console also shows ready-made connection snippets for common stacks. For example, a Python (psycopg) connection to a Postgres database:

python
import psycopg
conn = psycopg.connect(
    host="...",
    port=5432,
    dbname="...",
    user="...",
    password="...",
    sslmode="require",
)

The password is sensitive: it is only revealed on demand from the credentials view, and for a linked app it is delivered as the DB_PASSWORD environment variable rather than being printed in listings.

Managing a database

Open a database to reach its overview, connection, usage, and settings. From there you can rename it, rotate its password, manage engine-specific options, and see which apps it is linked to.

  • Rotate password: generates a new password and, for every attached app, updates the injected variable and redeploys automatically. Rotation may ask for your 2FA code.
  • Rename: changes the display name without affecting the underlying database or connections.
  • Redis persistence: dedicated Redis has an opt-in persistence toggle in settings.
  • Unlink an app: strips exactly the variables that link injected and triggers an env-only redeploy of that app, leaving the database itself intact.
  • Usage: storage used against your quota is shown on the card and in the usage view.
Heads up

Rotating a password invalidates the old one immediately. Attached apps are redeployed for you, but any external client or hard-coded connection string using the old password will stop working until you update it.

Deleting a database

Delete a database from its card or detail view. Deletion is confirmed by typing the database name and, where required, a 2FA code. Deleting drops the database and strips its injected variables from every attached app. This cannot be undone.

Teardown is asynchronous: the delete marks intent and queues the work, so the card shows a deleting status while the platform actually drops the database and redeploys any affected apps. For dedicated databases, per-minute billing stops when the database is torn down.

Heads up

Deleting a database cannot be undone. Restore points exist for a database that is running (nightly restore points are kept for 7 days on shared and 14 days on dedicated databases), but do not count on them after you delete it. Export or back up any data you need before you delete.

Limits and notes

  • Free shared PostgreSQL is capped at 500 MB and 5 concurrent connections; move to a dedicated database when you outgrow it.
  • Redis and MariaDB are dedicated-only, so they always run in their own billed container.
  • Dedicated databases take roughly one to two minutes to provision because a fresh container has to come up.
  • Database names are automatically namespaced per user, so you can reuse simple names without collisions.
  • Deletion and unlink are provenance-based: only the keys Sarpius DB injected are removed, never your own variables.

Sarpius is a trading name of Synthwave-technologies.nl · KvK 73239038 · VAT NL002410192B67 · Apeldoorn, the Netherlands

(c) 2026 Sarpius. All rights reserved.

Hosted in the EU