Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Xata

Connect Cloudflare Workers to a Xata PostgreSQL database by configuring Hyperdrive with a Xata connection string to enable connection pooling and reduced latency.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Xata

Connect Cloudflare Workers to a Xata PostgreSQL database by configuring Hyperdrive with a Xata connection string to enable connection pooling and reduced latency.

When To Use

Use when you need to connect a Cloudflare Worker to a Xata PostgreSQL database using Hyperdrive for optimized connection pooling and lower latency.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-databases-third-party-integrations-xata-workflow-guide.mdA guide explaining how to integrate Xata PostgreSQL databases with Cloudflare Workers using Hyperdrive.Questions about a guide explaining how to integrate Xata PostgreSQL databases with Cloudflare Workers using Hyperdrive.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata-.textA text file containing the PostgreSQL connection string format required to connect Cloudflare Workers to a Xata database.Exact payloads, commands, or snippets shown in A text file containing the PostgreSQL connection string format required to connect Cloudflare Workers to a Xata datab...
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--2.textA wrangler command to create a Hyperdrive configuration using a PostgreSQL connection string for Xata integration.Exact payloads, commands, or snippets shown in A wrangler command to create a Hyperdrive configuration using a PostgreSQL connection string for Xata integration.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--3.textA wrangler.toml configuration file demonstrating how to set up a Cloudflare Worker with a Xata database integration.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating how to set up a Cloudflare Worker with a Xata database integration.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--4.textA wrangler.toml configuration file demonstrating the setup for integrating Xata with Cloudflare Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating the setup for integrating Xata with Cloudflare Workers.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--5.textThe npm installation command required to add the pg driver to a Cloudflare Workers project for Xata integration.Exact payloads, commands, or snippets shown in The npm installation command required to add the pg driver to a Cloudflare Workers project for Xata integration.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--6.textThe shell command required to install the pg driver dependency for using Xata with Cloudflare Workers.Exact payloads, commands, or snippets shown in The shell command required to install the pg driver dependency for using Xata with Cloudflare Workers.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--7.textThe shell command to install the pg driver version 8.16.3 required for using Xata with Cloudflare Workers.Exact payloads, commands, or snippets shown in The shell command to install the pg driver version 8.16.3 required for using Xata with Cloudflare Workers.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--8.textThe shell command to install the pg driver using bun for a Cloudflare Workers Xata integration.Exact payloads, commands, or snippets shown in The shell command to install the pg driver using bun for a Cloudflare Workers Xata integration.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--9.textThe npm installation command for adding PostgreSQL type definitions required for the Workers Xata integration.Exact payloads, commands, or snippets shown in The npm installation command for adding PostgreSQL type definitions required for the Workers Xata integration.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--10.textThe shell commands required to install the necessary type definitions for PostgreSQL integration in a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install the necessary type definitions for PostgreSQL integration in a Cloudflare Work...
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--11.textThe command to install PostgreSQL type definitions for use with the Xata integration in Cloudflare Workers.Exact payloads, commands, or snippets shown in The command to install PostgreSQL type definitions for use with the Xata integration in Cloudflare Workers.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--12.textThe command to install PostgreSQL type definitions using bun for a Cloudflare Workers Xata integration.Exact payloads, commands, or snippets shown in The command to install PostgreSQL type definitions using bun for a Cloudflare Workers Xata integration.
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--13.textA wrangler.toml configuration file demonstrating the compatibility flags and bindings required to integrate Xata with Cloudflare Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating the compatibility flags and bindings required to integrate Xata with...
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--14.textA wrangler.toml configuration file demonstrating the compatibility flags and environment settings required to integrate Xata with Cloudflare Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating the compatibility flags and environment settings required to integra...
examples/workers-databases-third-party-integrations-xata-cloudflare-workers-xata--15.textA TypeScript code example demonstrating how to initialize a Xata client within a Cloudflare Workers fetch handler using environment variables.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize a Xata client within a Cloudflare Workers fetch handler usi...

What This Skill Covers

  • Xata ↗ is a PostgreSQL database platform designed to help developers operate and scale databases with enhanced productivity and performance. Xata provides fe...
  • Main sections: 1\. Allow Hyperdrive access, Xata dashboard, 2\. Create a database configuration, 3\. Use Hyperdrive from your Worker, Next steps.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/databases/third-party-integrations/xata