mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 16:16:02 +00:00
3f26c45dd9
* refactored adapters to run test suites * fix bun version for tests * added missing adapter tests and refactored examples to use `bknd.config.ts` where applicable
14 lines
289 B
TypeScript
14 lines
289 B
TypeScript
import { type BunBkndConfig, serve } from "bknd/adapter/bun";
|
|
|
|
// Actually, all it takes is the following line:
|
|
// serve();
|
|
|
|
// this is optional, if omitted, it uses an in-memory database
|
|
const config: BunBkndConfig = {
|
|
connection: {
|
|
url: "file:data.db",
|
|
},
|
|
};
|
|
|
|
serve(config);
|