NeonN
Neon17mo ago
2 replies
slow-yellow

How does the neon client work?

Does this code snippet create a constant connection to the neon database? Or it only connects when it executes a query:

import { neon } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-http";

const sql = neon("...");

export const db = drizzle(sql);
Was this page helpful?