cloudflare · Cloudflare Workers Docs
Connect To Turso Using Workers Connect to and query your Turso database using Workers
A step-by-step tutorial for integrating Cloudflare Workers with a Turso libSQL database, covering CLI installation, database creation, project configuration with Wrangler, and writing the connection logic.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Connect To Turso Using Workers Connect to and query your Turso database using Workers
A step-by-step tutorial for integrating Cloudflare Workers with a Turso libSQL database, covering CLI installation, database creation, project configuration with Wrangler, and writing the connection logic.
When To Use
Use when you need to build and deploy a globally distributed application that uses Cloudflare Workers to query a Turso edge-hosted database.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-connect-to-turso-using-and-query-your-database-workflow-guide.md | A tutorial guide for connecting to and querying a Turso database using Cloudflare Workers. | Questions about a tutorial guide for connecting to and querying a Turso database using Cloudflare Workers. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker.text | A step-by-step guide and command sequence for installing the Turso CLI and connecting a Cloudflare Worker to a Turso database. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for installing the Turso CLI and connecting a Cloudflare Worker to a Turso... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-2.text | A step-by-step guide and command sequence for connecting a Cloudflare Worker to a Turso database. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for connecting a Cloudflare Worker to a Turso database. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-3.text | A step-by-step guide and command sequence for connecting a Cloudflare Worker to a Turso database. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for connecting a Cloudflare Worker to a Turso database. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-4.text | A step-by-step guide and command sequence for authenticating with Turso and connecting a Cloudflare Worker to a Turso database. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for authenticating with Turso and connecting a Cloudflare Worker to a Turso... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-5.text | A text-based walkthrough and terminal output demonstrating the authentication and connection process between Cloudflare Workers and a Turso database. | Exact payloads, commands, or snippets shown in A text-based walkthrough and terminal output demonstrating the authentication and connection process between Cloudfla... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-6.text | A step-by-step guide and command sequence for creating a Turso database and connecting it to a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for creating a Turso database and connecting it to a Cloudflare Worker. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-7.text | A text-based walkthrough demonstrating the steps to create a Turso database and connect to it using Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text-based walkthrough demonstrating the steps to create a Turso database and connect to it using Cloudflare Workers. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-8.text | A text snippet showing the Turso CLI command used to access a database shell. | Exact payloads, commands, or snippets shown in A text snippet showing the Turso CLI command used to access a database shell. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-9.text | A text file containing SQL commands to create a table and insert user data into a Turso database via Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text file containing SQL commands to create a table and insert user data into a Turso database via Cloudflare Workers. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-10.text | A step-by-step guide and command sequence for initializing a Cloudflare Worker to connect to and query a Turso database. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for initializing a Cloudflare Worker to connect to and query a Turso database. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-11.text | A step-by-step guide and command sequence for initializing a Cloudflare Worker project to connect to a Turso database. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for initializing a Cloudflare Worker project to connect to a Turso database. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-12.text | A command-line instruction and project initialization sequence for creating a Cloudflare Worker with TypeScript to connect to a Turso database. | Exact payloads, commands, or snippets shown in A command-line instruction and project initialization sequence for creating a Cloudflare Worker with TypeScript to co... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-13.text | A step-by-step guide and command sequence for setting up a Cloudflare Worker to connect to and query a Turso database. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for setting up a Cloudflare Worker to connect to and query a Turso database. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-14.text | A command to display the URL for a specific Turso database using the Turso CLI. | Exact payloads, commands, or snippets shown in A command to display the URL for a specific Turso database using the Turso CLI. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-15.text | A text-based guide demonstrating how to connect to a Turso database using a Cloudflare Worker and a LibSQL connection string. | Exact payloads, commands, or snippets shown in A text-based guide demonstrating how to connect to a Turso database using a Cloudflare Worker and a LibSQL connection... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-16.text | A configuration file containing environment variables required to connect a Cloudflare Worker to a Turso database. | Exact payloads, commands, or snippets shown in A configuration file containing environment variables required to connect a Cloudflare Worker to a Turso database. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-17.text | A text-based configuration example showing how to define the LIBSQLDBURL variable for connecting a Cloudflare Worker to a Turso database. | Exact payloads, commands, or snippets shown in A text-based configuration example showing how to define the LIBSQLDBURL variable for connecting a Cloudflare Worker... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-18.text | A command line instruction for creating a Turso database token to be used within a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A command line instruction for creating a Turso database token to be used within a Cloudflare Worker. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-19.text | A text file containing the environment variable configuration required to authenticate a Cloudflare Worker with a Turso database. | Exact payloads, commands, or snippets shown in A text file containing the environment variable configuration required to authenticate a Cloudflare Worker with a Tur... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-20.text | A step-by-step guide and command sequence for connecting a Cloudflare Worker to a Turso database using environment secrets. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for connecting a Cloudflare Worker to a Turso database using environment se... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-21.text | A step-by-step guide and command sequence for connecting a Cloudflare Worker to a Turso database. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for connecting a Cloudflare Worker to a Turso database. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-22.text | A text-based guide and command sequence for installing dependencies and connecting a Cloudflare Worker to a Turso database using the libsql client. | Exact payloads, commands, or snippets shown in A text-based guide and command sequence for installing dependencies and connecting a Cloudflare Worker to a Turso dat... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-23.text | A tutorial guide demonstrating how to install necessary dependencies and connect to a Turso database using Cloudflare Workers. | Exact payloads, commands, or snippets shown in A tutorial guide demonstrating how to install necessary dependencies and connect to a Turso database using Cloudflare... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-24.text | A tutorial implementation demonstrating how to connect to and query a Turso database using Cloudflare Workers and the libsql client. | Exact payloads, commands, or snippets shown in A tutorial implementation demonstrating how to connect to and query a Turso database using Cloudflare Workers and the... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-25.text | A step-by-step guide and command sequence for installing dependencies and connecting a Cloudflare Worker to a Turso database using the libsql client. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for installing dependencies and connecting a Cloudflare Worker to a Turso d... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-26.text | A JavaScript implementation demonstrating how to initialize a LibSQL client within a Cloudflare Worker to query a Turso database using environment variables. | Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to initialize a LibSQL client within a Cloudflare Worker to query a Tur... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-27.text | A step-by-step guide and command sequence for connecting a Cloudflare Worker to a Turso database using wrangler. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for connecting a Cloudflare Worker to a Turso database using wrangler. |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-28.text | A configuration and environment variable setup demonstrating how to connect a Cloudflare Worker to a Turso database using specific bindings. | Exact payloads, commands, or snippets shown in A configuration and environment variable setup demonstrating how to connect a Cloudflare Worker to a Turso database u... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-29.text | A text representation of a database query result showing email columns and rows when connecting to Turso via Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text representation of a database query result showing email columns and rows when connecting to Turso via Cloudfla... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-30.text | A step-by-step guide and command sequence for deploying a Cloudflare Worker that connects to and queries a Turso database. | Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for deploying a Cloudflare Worker that connects to and queries a Turso data... |
examples/workers-connect-to-turso-using-and-query-your-database-cloudflare-worker-31.text | A configuration and environment variable setup demonstrating how to connect a Cloudflare Worker to a Turso database. | Exact payloads, commands, or snippets shown in A configuration and environment variable setup demonstrating how to connect a Cloudflare Worker to a Turso database. |
What This Skill Covers
- This tutorial will guide you on how to build globally distributed applications with Cloudflare Workers, and Turso ↗, an edge-hosted distributed database base...
- Main sections:
Tags,Prerequisites,Install the Turso CLI,Create and populate a database,Use Wrangler to create a Workers project.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/tutorials/connect-to-turso-using-workers
