docs: simplified custom postgres description

This commit is contained in:
dswbx
2025-06-12 10:42:49 +02:00
parent d5bb6ffa61
commit 9c4aac8843

View File

@@ -114,12 +114,12 @@ Example using `@neondatabase/serverless`:
import { createCustomPostgresConnection } from "@bknd/postgres"; import { createCustomPostgresConnection } from "@bknd/postgres";
import { NeonDialect } from "kysely-neon"; import { NeonDialect } from "kysely-neon";
const connection = createCustomPostgresConnection(NeonDialect)({ const neon = createCustomPostgresConnection(NeonDialect);
connectionString: process.env.NEON,
});
serve({ serve({
connection: connection, connection: neon({
connectionString: process.env.NEON,
}),
}); });
``` ```
@@ -137,14 +137,14 @@ const xata = new client({
branch: process.env.XATA_BRANCH, branch: process.env.XATA_BRANCH,
}); });
const connection = createCustomPostgresConnection(XataDialect, { const xataConnection = createCustomPostgresConnection(XataDialect, {
supports: { supports: {
batching: false, batching: false,
}, },
})({ xata }); });
serve({ serve({
connection: connection, connection: xataConnection({ xata }),
}); });
``` ```