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,
|
PlanetscaleQueryResultHKT,
|
||||||
PlanetScalePreparedQueryHKT,
|
PlanetScalePreparedQueryHKT,
|
||||||
Record<string, never>,
|
Record<string, never>,
|
||||||
ExtractTablesWithRelations<Record<string, never>>
|
ExtractTablesWithRelations<Record<string, never>, Record<string, never>>
|
||||||
>
|
>
|
||||||
|
|
||||||
const client = memo(() => {
|
const client = memo(() => {
|
||||||
|
|
@ -23,7 +23,7 @@ export namespace Database {
|
||||||
username: Resource.Database.username,
|
username: Resource.Database.username,
|
||||||
password: Resource.Database.password,
|
password: Resource.Database.password,
|
||||||
})
|
})
|
||||||
const db = drizzle(result, {})
|
const db = drizzle({ client: result })
|
||||||
return db
|
return db
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue