core: add db command for database inspection and querying

This commit is contained in:
Dax Raad
2026-02-14 20:36:17 -05:00
parent b5c8bd3421
commit 45f0050372
3 changed files with 71 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ export const NotFoundError = NamedError.create(
const log = Log.create({ service: "db" })
export namespace Database {
export const Path = path.join(Global.Path.data, "opencode.db")
type Schema = typeof schema
export type Transaction = SQLiteTransaction<"sync", void, Schema>