mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +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),
|
|
});
|
|
}
|