Skip to main content

Databases

Layero databases are plain PostgreSQL next to your projects: in the same organization, on servers in Moscow. You create a database in the dashboard (a shared one also with one CLI command), and give it to a project with a button — the connection string arrives in the build by itself.

Beta

Databases are in beta. Everything described in this section works, but the interface and some features are still changing. If a page differs from the dashboard, write to support.

The section is open to every organization: the «Базы данных» (Databases) item is in the dashboard menu, in the «Сервисы» (Services) group.

Shared and dedicated​

Shared databaseDedicated database
Where it liveson a shared Layero serveron a separate server just for you
Computeshared CPU, «Shared CPU» in the dashboardyou choose cores, memory and disk
Space0.5 GB8 to 2 000 GB, the disk can grow
PlanPro onlyany, no subscription needed
Priceincluded in Profrom 1 350 ₽ a month, hourly from the balance
If Pro endsaccess is closed after the grace period, the database is deleted 3 days laterdoesn't depend on the subscription
How manyone per organizationas many as you need
How long to waitunder a minute7–13 minutes
PostgreSQL version18one of those offered, the newest by default
Backupsfree: once a day, kept up to 7 dayspaid option: 1 to 14 copies
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 another PostgreSQL version. You can create one right away or move a shared database onto it when it grows.

Prices and payment are on Pricing, all the limits are on Limits.

What the section can do​

  • Projects connect by themselves. Give a 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 relations — the database's contents by schema, rows and a relationship diagram right in the dashboard.
  • SQL editor with bookmarks, history and a trial run 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 trial call and version history.
  • Triggers — functions the database calls by itself on writes to a table.
  • Extensions with a switch — the list is on Working in the dashboard.
  • Monitoring — space, connections and load over an hour, a day or a week.
  • Backups on a schedule, restore with a button, a dump to download.
  • Access by address — from outside, only addresses on your list can connect to the database.
  • Data API — the database over HTTP for the frontend, with no server of your own. Available on Pro, in beta.

Where to start​

  1. Create a database — in the dashboard or with layero db create.
  2. Connect it to a project or connect to it yourself with the connection string.
  3. Look through Working in the dashboard to know where things are.

Pages in this section​