Thin wrapper around @neondatabase/serverless scoped to Cloudflare’s Hyperdrive binding. Depends on @latimer-woods-tech/errors and @latimer-woods-tech/logger.
import { createDb, withDbRetry } from '@latimer-woods-tech/neon';const db = createDb(env.DB);const result = await withDbRetry(() => db.execute<{ id: string; email: string }>( 'SELECT id, email FROM users WHERE id = $1', [userId], ));const user = result.rows[0];