by alterxyz · v0.0.3
Connect to external data source - Cloudflare D1
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
A Dify plugin that allows you to connect to Cloudflare D1 databases, execute SQL queries, and integrate database operations into your AI applications.
Cloudflare D1 is a serverless SQL database with SQLite semantics, offering:
This connector enables seamless integration with Dify's AI workflow, allowing your AI agents to directly query and retrieve data from your D1 databases.
Cloudflare API Token:
Cloudflare Account ID:
For each query, you'll need:
The connector has two types of responses:
Success Response: Returns a JSON object with:
success: Boolean value truemetadata: Complete Cloudflare D1 execution result that may containing:
Error Response:
metadata with error informationExample Success Response:
{
"success": true,
"metadata": {
"result": [
{
"results": [
{
"1": 1
}
],
"success": true,
"meta": {
"served_by": "v3-prod",
"served_by_region": "APAC",
"served_by_primary": true,
"timings": {
"sql_duration_ms": 0.2211
},
"duration": 0.2211,
"changes": 0,
"last_row_id": 0,
"changed_db": false,
"size_after": 28672,
"rows_read": 0,
"rows_written": 0
}
}
],
"errors": [],
"messages": [],
"success": true
}
}
True
The connector provides detailed error information when queries fail:
Since it might fail, it is recommended to enable Dify's retry and error handling.
?) for dynamic values