Skip to main content

Databases

Layero databases are plain PostgreSQL right next to your projects: in the same account, on servers in Moscow. You create a database in the dashboard or with a single CLI command, and give it to a project with a button — the connection string arrives in the build automatically.

Beta

Databases are in beta. Everything described in this section already works, but the interface and some features are still changing, and the page may lag behind the dashboard by a few days. If you notice a discrepancy, let us know — it helps.

The section is open to all organizations: the Databases item is in the dashboard menu, in the "Services" group.

Two placements​

Shared databaseDedicated database
Where it livesa shared Layero servera separate server just for you
Powershared processor, "Shared CPU"you choose the cores, memory, and disk
Space0.5 GB8 to 2,000 GB, the disk can be increased
PlanPro onlyany, no subscription needed
Priceincluded in Profrom 600 ₽ per month
Without a Pro subscriptionaccess closes after the grace period, data is deleteddoesn't depend on the subscription
How manyone per organizationas many as you need
Wait timeunder a minute7–13 minutes
PostgreSQL version1814–18, your choice
Backupsfree: once a day, up to 7 dayspaid option: 1–14 backups
Create from the CLIyesdashboard only

A shared database is for getting started: click and go. It's enough for a prototype, a small site, or an internal service.

A dedicated database is for when you need guaranteed resources, more space, or a specific PostgreSQL version. You can create one right away or move your shared database onto it once that one grows.

Details on prices and payment — "Pricing", on all limits — "Limits".

What the section can do​

  • The project connects itself. Give the database to a project — the connection string arrives in the LAYERO_DATABASE_URL variable, and the project gets its own role in the database.
  • Tables and relationships — the database's contents by schema, rows, and a relationship diagram right in the dashboard.
  • SQL editor with bookmarks, history, and trial runs of a query as a Data API role.
  • Roles and RLS policies — who connects and which rows they see. Access can be granted for a limited time.
  • Functions with a test call and version history.
  • Extensions with a toggle: pgcrypto, uuid-ossp, citext, pg_trgm, unaccent, btree_gin, pgvector.
  • Monitoring — space, connections, and load over an hour, a day, or a week.
  • Backups on a schedule, restore with a button, and download as a regular PostgreSQL dump.
  • Access by address — from outside, only addresses on your list can connect to the database.
  • Data API — the database over HTTP for your frontend, without your own server. Data API isn't open to everyone yet — how to get access is described in its section.

Where to start​

  1. Create a database — in the dashboard or with the layero db create command.
  2. Connect it to a project or connect yourself using the connection string.
  3. Take a look at working in the dashboard so you know where everything is.

The whole section​