Run a read-only SQL query
db_queryRun a read-only SQL query (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH) against the project's database to inspect tables and data, with results capped at 50 rows.
Instructions
Run one SELECT/SHOW/DESCRIBE/EXPLAIN/WITH query against the project's database inside a read-only transaction. Results are capped at 50 rows; use LIMIT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single read-only SQL statement |