mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 05:35:15 +00:00
core: fix Drizzle ORM client initialization and type definitions
This commit is contained in:
parent
a48a5a3462
commit
f40685ab13
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ export namespace Database {
|
|||
PlanetscaleQueryResultHKT,
|
||||
PlanetScalePreparedQueryHKT,
|
||||
Record<string, never>,
|
||||
ExtractTablesWithRelations<Record<string, never>>
|
||||
ExtractTablesWithRelations<Record<string, never>, Record<string, never>>
|
||||
>
|
||||
|
||||
const client = memo(() => {
|
||||
|
|
@ -23,7 +23,7 @@ export namespace Database {
|
|||
username: Resource.Database.username,
|
||||
password: Resource.Database.password,
|
||||
})
|
||||
const db = drizzle(result, {})
|
||||
const db = drizzle({ client: result })
|
||||
return db
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue