How to deal with .json().type<T> where T is an interface with a date
Drizzle not being able to push with bun:sqlite
better-sqlite3
or @libsql/client
, which doesn't really make sense. If I already have a driver, I don't need another. I didn't seen anything specfic to bun, so was the bun:sqlite
support just dropped?
How to deal join field possibly null type? Typescript errors even after checks
push not detecting existing constraint and then failing with error
drizzle-kit
now, primarily drizzle-kit generate
and drizzle-kit migrate
.
However, since my team has grown, I wanted to experiment with using drizzle-kit push
to rapid prototype during development without actually generating files....Cant use query with pglite + drizzle local
drizzle.query doesn't work with tables outside `public` schema
`Error [AssertionError]` when inserting `Buffer` in a `blob` column (SQLite)
hash: blob("hash", { mode: "buffer" })
Whenever I try to insert values like this: .values({ hash: Buffer.from(new Uint8Array([1, 2, 3])) }
an error is thrown with cause: Error [AssertionError]: false == true
I can insert Uint8Array
or strings directly with no runtime errors, but with TypeScript errors. If i change the type (.$type<UInt8Array>
) typing works, except when querying the returned value is of course not a Uint8Array
but a Buffer
behind the scenes....Heavy snapshots
drizzle select() -> Expected 0 arguments, but got 1
Drizzle not being able to push changes

Mocking drizzle
Multiple leftJoins always returns never[]
never[]
. Is this intentional or a bug?
```ts
import { pgSchema, primaryKey, text, uuid } from 'drizzle-orm/pg-core'
import { drizzle } from 'drizzle-orm/postgres-js'...select with sql<number> returns string
Depricated pgTable function
drizzle-kit push ignores SQL schema
drizzle-kit push
, nothing is added to the database.
It works fine when I just use pgTable
to declare the tables, and drizzle-kit generate
creates the Postgres schemas as well.
My current src/schemas/auth.ts
file looks like this:...[DRIZZLE KIT] Cannot convert undefined or null to object
Authentication error running studio on remote D1 instance
