> For the complete documentation index, see [llms.txt](https://docs.fylr.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fylr.io/for-system-administrators/inspect/sql-query.md).

# SQL Query

The **SQL Query** console (`/inspect/sqlquery/`) runs arbitrary SQL against the fylr PostgreSQL database and shows the result. It is a debugging tool for people who know the fylr schema.

{% hint style="danger" %}
This runs whatever SQL you type — including writes and schema changes — with no safety net and, on the backend port, no authentication. Only use it on a private, non-production instance you can afford to break.
{% endhint %}

## Enabling it

The console is **not registered** unless `fylr.debug.inspectEnableSqlQuery` is set to `true` in `fylr.yml`. On a normal instance the page does not exist.

## See also

* [The /inspect Backend](/for-system-administrators/inspect.md) — the console overview and auth model.
