> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Database Explorer: Browse and Edit Data in the Dashboard

> Browse the tables, collections and Redis keys of a managed database in the Square Cloud dashboard, filter rows by value and edit one row or key at a time.

The **Explorer** tab of a database, in the dashboard, shows what the database holds without a client of your own: the tables and rows of a PostgreSQL or MySQL database, the collections and documents of a MongoDB database, and the keys of a Redis database. You can also insert, change or delete one row or one key at a time, after a review of the before and after.

It is a shortcut for quick lookups and small fixes. For day-to-day work on your data, connect [a dedicated tool](#when-to-use-a-dedicated-tool).

The Explorer tab lists the tables of the database and the rows of the one you pick. A change to one row shows its before and after for review before it is saved.

Pick a table, open a row, review the change, then save it.

## What you can do

> [card] Browse without a client
>
> See the **databases, schemas, tables or collections** and their rows in the browser, with no driver, certificate or connection string to set up.

> [card] Filter by exact value
>
> Narrow a table to the rows where **one column holds one value**, or search the keys of a Redis database by pattern.

> [card] Edit one row at a time
>
> **Insert, change or delete** a row, a document or a key. Every change shows its before and after before it is saved.

> [card] All four engines
>
> Works on [PostgreSQL](https://docs.squarecloud.app/en/services/databases/postgresql.md), [MySQL](https://docs.squarecloud.app/en/services/databases/mysql.md), [MongoDB](https://docs.squarecloud.app/en/services/databases/mongodb.md) and [Redis](https://docs.squarecloud.app/en/services/databases/redis.md), on every plan with databases.

## Open the Explorer

**1. Open your database**

Go to [Databases](https://squarecloud.app/en/dashboard/databases) in the dashboard and open the database. It must be **running**: start a stopped database first.

**2. Open the Explorer tab**

Pick a database (and a schema, on PostgreSQL) to list its tables or collections. On Redis, pick the numbered database to list its keys.

**3. Pick a table or a key**

The rows of the table show on the right, one page at a time. Open a row to see every field in full.

Only the **owner of the database** can use the Explorer.

## Tables, collections and rows

* **The list** shows every table or collection with an estimate of how many rows or documents it holds, and a field to filter the list by name. Views and partitioned tables are marked.
* **The rows** come one page at a time, with **Previous** and **Next**. A long value is cut in the list: open the row to see more of it.
* **The filter** takes a column and an exact value, and shows only the rows where that column holds that value. On MongoDB the filter compares text, so it lists only the text fields.
* **The menu** of a cell copies its value, copies the row as JSON or filters the table by that value.
* **A table without a primary key** lists only its first rows. Use the filter to find the others.

## Insert, change and delete

Every change goes through a **review**: the dashboard shows the value before and after, and only the fields you changed are sent. Nothing is written until you confirm.

* **Insert:** an empty field is left out, so the database uses its default value or `NULL`.
* **Change:** edit the fields of an open row. Each changed field is marked and can be undone before you save.
* **Delete:** a deleted row, document or key **cannot be recovered**. Take a [snapshot](https://docs.squarecloud.app/en/services/databases.md#snapshots-and-restore) first when in doubt.
* **MongoDB documents** are written as JSON. Besides plain JSON, these typed forms are accepted: `$oid`, `$date`, `$numberLong` and `$numberDecimal`.

> [!WARNING]
>
> The Explorer changes the live database, with no undo after a save. A wrong value follows the rules of the database itself: a type the column doesn't take, a duplicate or a required field left empty is refused, and nothing is written.

## Redis keys

A Redis database has no tables, so the Explorer lists its **keys**:

* **Search** by key pattern (such as `session:*`). The scan runs in parts: use **Load more** to continue it.
* **Open a key** to see its type, its expiry and its value. Strings, hashes, lists, sets and sorted sets can be changed, one field, member or item at a time.
* **Expiry:** set it in seconds, or remove it so the key never expires.
* **New key** creates a string key. If a key with that name already exists, of any type, it is replaced.
* **Lists:** removing an item removes the first occurrence of that value in the list, which may not be the item you picked.
* **Streams** are read-only, and a key of a module type shows only its metadata.

## What is read-only

Some data can be read in the Explorer but not changed there:

| What | Why |
| :- | :- |
| A view or a partitioned table | Rows are changed in the tables behind them. |
| A table without a primary key, or with a key of an unsupported type | One row can't be told apart from another. |
| A value cut at 256 KB | Saving would replace the real value with the cut text. |
| Binary content | It shows escaped, and the text sent back would be a different value. |
| A Redis stream, or a key with a binary name | Read only. |

For any of these, connect with your own client.

## Limits

| Limit | Value |
| :- | :- |
| Rows or keys per change | One |
| Fields per change | Up to 50 |
| Size of one change | About 60 KB |
| Filter value | Up to 4,096 bytes |
| Redis key pattern | Up to 256 bytes |
| Name of a new Redis key | Up to 4 KB |
| Depth of a JSON value | Up to 10 levels |

Operations are also limited per minute on each database: after too many in a row, wait a minute and try again. A read that takes too long is stopped: narrow it with a filter.

**What the Explorer does not do:** there is no SQL console, no bulk edit and no import or export. It is available in the dashboard only, not through the API.

## When it is unavailable

| Message | What to do |
| :- | :- |
| The database is stopped | Start the database: the Explorer needs it running. |
| Another operation is running on this database | Wait a moment and try again. |
| The database is being upgraded to a new version | Try again in a few minutes. |
| This row or key no longer exists | It was deleted from somewhere else. Refresh the list. |
| Not available for this database | The Explorer doesn't work with this database's version or access configuration. Use your own client. |

## When to use a dedicated tool

For queries, bulk changes, imports and exports, connect a dedicated tool with the credentials and certificate from the database's **Connection** tab:

| Engine | Tool | Connection guide |
| :- | :- | :- |
| PostgreSQL | [pgAdmin](https://www.pgadmin.org/) | [PostgreSQL](https://docs.squarecloud.app/en/services/databases/postgresql.md#connect) |
| MySQL | [MySQL Workbench](https://www.mysql.com/products/workbench/) | [MySQL](https://docs.squarecloud.app/en/services/databases/mysql.md#connect) |
| MongoDB | [MongoDB Compass](https://www.mongodb.com/products/tools/compass) | [MongoDB](https://docs.squarecloud.app/en/services/databases/mongodb.md#connect) |
| Redis | [Redis Insight](https://redis.io/insight/) | [Redis](https://docs.squarecloud.app/en/services/databases/redis.md#connect) |

You can also host pgAdmin on Square Cloud itself: see [How to deploy pgAdmin](https://docs.squarecloud.app/en/tutorials/how-to-deploy-pgadmin.md).

## Frequently asked questions

> [accordion] Do I need to install anything to see my data?
>
> No. The Explorer runs in the dashboard, in your browser: no client, driver or certificate to set up.

> [accordion] Can I run SQL queries in the Explorer?
>
> No. There is no SQL console. The Explorer lists rows, filters by one exact value and edits one row at a time. For queries, connect a [dedicated tool](#when-to-use-a-dedicated-tool).

> [accordion] Can I import or export a database?
>
> Not in the Explorer. Use the engine's own tools with the connection details from the dashboard, or take a [snapshot](https://docs.squarecloud.app/en/services/databases.md#snapshots-and-restore) to keep a copy of the whole database.

> [accordion] Why can't I change a row?
>
> The table is a view, is partitioned, has no primary key or has a key of an unsupported type; or the value is cut or binary. See [what is read-only](#what-is-read-only).

> [accordion] Can a workspace member use it?
>
> No. Only the owner of the database uses the Explorer.

> [accordion] Which plan do I need?
>
> Any plan with databases: an **active [Standard plan or higher](https://docs.squarecloud.app/en/platform/plans.md)**. The Explorer is included at no extra cost.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.