import { a as withTransactionIdentity } from "../transaction-Uv-u8h_k.js";
import { Pool } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-serverless";
//#region src/postgres/neon-serverless.ts
function createNeonServerlessClient(opts) {
	const pool = new Pool({ connectionString: opts.connectionString });
	return withTransactionIdentity(drizzle(pool, { schema: opts.schema }));
}
//#endregion
export { createNeonServerlessClient };
