query_one
Return the first row of a SELECT query. Retrieve a single record without fetching all results.
Instructions
Run a SELECT and return the first row only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| params | No | ||
| database | No | Database/schema name; defaults to connection default_database | |
| connection | No | Named connection from config; defaults to default_connection |