Databases
A database is a set of rows that all have the same fields, called properties. Use one for tasks, projects, a hiring pipeline or anything else you want to keep as a table. You can look at the same rows as a table, a board, a calendar and more, and every row opens as a page you can write in.
If you haven’t made one yet, start with Make a database.
How a database is stored
Section titled “How a database is stored”Each Lyra database is a real table in Postgres, with one typed column for each property. Filters, sorts, formulas and rollups run inside the database itself, so a view stays fast with tens of thousands of rows.
You don’t need to know any of this to use a database. It matters in two places:
- A property’s type is enforced. A Number property only holds numbers, and a Date property only holds dates.
- Changing a property’s type converts the values that are already there. Properties explains how.
When two people change the same cell at the same moment, the last change wins. Every change is kept in the row’s history, so nothing is lost without a record.
Full-page and inline databases
Section titled “Full-page and inline databases”A database is always a page of its own. The difference is where you see it.
| Full-page database | Inline database | |
|---|---|---|
| Where it shows | As its own page in the sidebar | Inside another page, between its blocks |
| How to make one | New database on Home or in the search menu, or Add database inside on a page’s menu in the sidebar | Type /database in a page and click Create database |
| Views | Its own view tabs | Its own view tabs, or views kept only for that page |
To open an inline database on its own, click the arrow next to its title (Open as full page).
Show an existing database inside a page
Section titled “Show an existing database inside a page”You can show a database that lives somewhere else inside any page:
- Type
/databaseon an empty line. - Click Link a database and pick the database.
The block shows the same rows as the original. A change made in the block changes the database everywhere.
By default the block uses the database’s own views, so changing a filter there changes it for everyone who uses that view. To give the block views of its own, click + next to its view tabs (Add a view) and pick Views only on this page. Lyra copies the current view, and from then on that page’s views are separate from the database’s.
Add rows
Section titled “Add rows”There are several ways to add a row:
- Click New in the database’s toolbar. The new row opens as a page.
- Click New under the last row of a table.
- On a board, click + at the top of a column (New row in group). The row starts with that column’s value.
- On a calendar, add a row on a day. The row starts with that date.
- Fill in a form. Each response adds a row.
Templates
Section titled “Templates”A template is a row that new rows copy: its properties, its icon and the page content under it.
- Click the arrow next to New (New from a template).
- Click New template. It opens like a row. Fill in the properties and write the content new rows should start with.
The arrow next to New lists the database’s templates under Templates for followed by the database’s name. Click a template to make a row from it. Next to each template:
| Button | What it does |
|---|---|
| Star (Use for every new row) | Makes it the default. New uses it from then on. Click again to Stop using as default |
| Edit template | Opens the template to change it |
| Delete template | Removes it |
Empty page makes a row without a template, even when there is a default.
Every row is a page
Section titled “Every row is a page”Click a row’s title to open it. In a table, right-click a row (or use its handle) to choose how:
| Menu item | What it does |
|---|---|
| Open in side peek | Opens the row in a panel beside the database |
| Open as page | Opens the row as a full page |
| Copy link | Copies a link to the row |
| Copy ID | Copies the row’s id, which the API and AI agents use |
| Add sub-item | Adds a row under this one, when the view shows sub-items |
| Delete | Moves the row to the trash |
A row page has the row’s properties at the top and an ordinary page below them. Write notes, add blocks and comment on a row the same way you would on any page.
To select several rows in a table, tick the box at the start of each row. The bar at the bottom shows how many are selected and lets you delete them together.
Choose which properties show on row pages
Section titled “Choose which properties show on row pages”Each property has an On row pages setting. Click a property’s name on a row page, or open Edit property from its column header, to change it.
| Setting | What it does |
|---|---|
| Pin under title | Shows the property in a compact row right under the page title. Up to 4 properties can be pinned |
| Always show | Lists the property under the title. This is the default |
| Hide when empty | Lists the property only when this row has a value for it |
| Always hide | Keeps the property off row pages |
A row page lists the first 10 properties and puts the rest behind a more properties button. Hidden properties sit behind a hidden properties button, so you can still see and change them when you need to. People who can edit the database also get Add a property there.
Row history
Section titled “Row history”Click Changes under a row’s properties to see who changed which property, from what and to what. The list shows the 50 most recent changes. Changes to the page content below the properties are in the page’s history instead.
Sub-items
Section titled “Sub-items”Sub-items show rows nested under other rows in a table, like tasks under a project.
They need a relation from the database to itself that shows on both sides, such as Parent item and Sub-items. Databases imported from Notion with sub-items already have one, and an AI agent or the API can add one.
To turn them on for a table view:
- Click View settings in the toolbar.
- Under Nest sub-items by, pick the relation that points at the parent row.
The table then lists only rows without a parent. Click the arrow next to a row to show its sub-items, and right-click a row and pick Add sub-item to add one under it.
Date reminders
Section titled “Date reminders”Lyra can remind you about a date in a row, like a due date or a meeting.
- Click a Date cell that has a date.
- In the date picker, pick a time under Remind.
| Date without a time | Date with a time |
|---|---|
| On the day (9:00 AM) | At time of event |
| 1 day before (9:00 AM) | 5 minutes before, 10 minutes before, 15 minutes before, 30 minutes before |
| 2 days before (9:00 AM) | 1 hour before, 2 hours before |
| 1 week before (9:00 AM) | 1 day before, 2 days before |
A reminder is only for you. Other people who open the row don’t see it and aren’t reminded. When it’s due, it shows in your inbox and Lyra emails you. To stop the emails, turn off A date you set a reminder on comes up under Emails in your account settings. If the date in the row changes, the reminder moves with it. Pick None to remove it.
Reminders for dates without a time go out at 9:00 AM in your own time zone.
When someone adds you to a Person property on a row, Lyra tells you the same way.
Copy a database, a row or a cell
Section titled “Copy a database, a row or a cell”| To copy | Do this |
|---|---|
| A whole database | Click Duplicate on the database’s page menu, or on its menu in the sidebar. The copy has the same properties, views, templates and rows |
| A link to a row | Copy link on the row’s menu, or the link button in side peek |
| One cell | Click the cell and press Cmd+C (Ctrl+C on Windows and Linux). Click another cell and press Cmd+V (Ctrl+V) to paste it. Lyra converts the text to the other property’s type |
To delete what’s in a cell, click it and press Delete or Backspace.
Who can change a database
Section titled “Who can change a database”What you can do follows your access to the database page:
| Access | What you can do |
|---|---|
| Can view | See rows and views, and send forms |
| Can comment | The same, plus comment on row pages |
| Can edit and Full access | Add, change and delete rows, properties and views |
If you can’t edit a database, you can still change a view’s filters, sorts and other settings to look at it your way. Those changes apply only on your screen and aren’t saved for anyone else.
- Properties: every property type and its settings
- Views: tables, boards, calendars, charts, filters and sorts
- Formulas and relations and rollups
- Forms: collect responses as rows