postgres: move examples up

This commit is contained in:
dswbx
2025-10-31 20:11:16 +01:00
parent dbb19a27f4
commit ed47c5bf51
8 changed files with 34 additions and 159 deletions

14
examples/postgres/neon.ts Normal file
View File

@@ -0,0 +1,14 @@
import { serve } from "bknd/adapter/bun";
import { createCustomPostgresConnection } from "bknd";
import { NeonDialect } from "kysely-neon";
const neon = createCustomPostgresConnection("neon", NeonDialect);
export default serve({
connection: neon({
connectionString: process.env.NEON,
}),
// ignore this, it's only required within this repository
// because bknd is installed via "workspace:*"
distPath: "../../app/dist",
});