mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-25 07:15:19 +00:00
9 lines
226 B
TypeScript
9 lines
226 B
TypeScript
import { DatabaseSync } from "node:sqlite"
|
|
import { drizzle } from "drizzle-orm/node-sqlite"
|
|
|
|
export function init(path: string) {
|
|
const sqlite = new DatabaseSync(path)
|
|
const db = drizzle({ client: sqlite })
|
|
return db
|
|
}
|