
11/15/2022 · Erwin van der Koogh, George MacKerron
What this post added
This post introduces a new integration for Cloudflare Workers with Neon.tech, a serverless PostgreSQL provider. It addresses the challenge of connecting Workers to databases by leveraging a WebSocket proxy and a specialized client library (`@neondatabase/serverless`) that shims Node.js features not present in Workers. This enables developers to easily use PostgreSQL within their Workers, including advanced use cases like geospatial queries with PostGIS, and demonstrates how to provide connection details and write Worker code for database interaction.