d1_query
Execute SQL queries on Cloudflare D1 databases to retrieve, update, or manage data using the database's REST API without direct connections.
Instructions
Run a SQL query against the configured Cloudflare D1 database.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bindings | No | Optional positional bindings for the SQL statement. | |
sql | Yes | The SQL statement to execute. |
Input Schema (JSON Schema)
{
"properties": {
"bindings": {
"description": "Optional positional bindings for the SQL statement.",
"items": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"type": "array"
},
"sql": {
"description": "The SQL statement to execute.",
"type": "string"
}
},
"required": [
"sql"
],
"type": "object"
}