drizzle-orm
drizzle-orm copied to clipboard
[BUG]: sqlite blob<{foo: string}> not working
What version of drizzle-orm
are you using?
0.26.5
What version of drizzle-kit
are you using?
0.18.1
Describe the Bug
demo code from https://orm.drizzle.team/docs/column-types/sqlite#blob not working
blob<{ foo: string }>('blob', { mode: 'json' })
after search, I found usage of $type
in https://github.com/drizzle-team/drizzle-orm/issues/635 do works
I guess the documentation is too new or outdated.
Expected behavior
No response
Environment & setup
No response
The docs have outdated syntax. Use blob('blob', { mode: 'json' }).$type<{ foo: string }>()