You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that the bug I'm about to report hasn't been filed before.
What version of drizzle-orm are you using?
0.39.0
What version of drizzle-kit are you using?
0.30.0
Other packages
No response
Describe the Bug
I'm upgrading from the node postgres package to bun's built in postgres sql and my typing is all broken
Before:
import{drizzle}from"drizzle-orm/postgres-js";importpostgresfrom"postgres";import{schema}from"./schema";constclient=postgres(import.meta.env.DB_URLasstring);exportconstDB=drizzle(client,{
schema,logger: true,});// This typing is being inferred correctly// eg: { Verification: RelationalQueryBuilder<ExtractTablesWithRelations<{ Verification: PgTableWithColumns<{ name: DBTableNames.Verification; schema: undefined; columns: { identifier: PgColumn<{ name: "identifier"; tableName: DBTableNames.Verification; dataType: "string"; columnType: "PgText"; ... 10 more ...; generated: undefined; }, {}, {}>; ... 4 more ...; id: PgColumn<...>; }; dialect: "pg"; }>; ... 15 more ...; AccessRelations: Relations<...>; }>, { ...; }>; ... 6 more ...; Access: RelationalQueryBuilder<...>; }typeFoo=typeofDB.query;
After:
import{drizzle}from"drizzle-orm/bun-sql";import{schema}from"./schema";exportconstDB=drizzle({connection: import.meta.env.DB_URLasstring,
schema,logger: true,});// This typing is inferred as `{}` which is not correcttypeFoo=typeofDB.query
The text was updated successfully, but these errors were encountered:
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.39.0
What version of
drizzle-kit
are you using?0.30.0
Other packages
No response
Describe the Bug
I'm upgrading from the node
postgres
package to bun's built in postgres sql and my typing is all brokenBefore:
After:
The text was updated successfully, but these errors were encountered: