mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 16:16:02 +00:00
13 lines
466 B
TypeScript
13 lines
466 B
TypeScript
import { createApp as createAppInternal, type CreateAppConfig } from "App";
|
|
import { bunSqlite } from "adapter/bun/connection/BunSqliteConnection";
|
|
import { Connection } from "data/connection/Connection";
|
|
|
|
export { App } from "App";
|
|
|
|
export function createApp({ connection, ...config }: CreateAppConfig = {}) {
|
|
return createAppInternal({
|
|
...config,
|
|
connection: Connection.isConnection(connection) ? connection : bunSqlite(connection as any),
|
|
});
|
|
}
|