We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drizzle-orm
0.29.1
drizzle-kit
No response
sqliteTable('table', { id: integer('id', { mode: 'number' }).primaryKey({ autoIncrement: true }), binary: blob('binary').notNull().type<ArrayBuffer>(), });
When i query the binary column, the typeof binary is a string which is the UTF8 encoded version of initial ArrayBuffer.
Using turso driver with libsql dev environment
The text was updated successfully, but these errors were encountered:
This problem come from the environment where drizzle is running, in my case cloudflare workers which does not support Buffer.
Just tried in a classic node environment and it works ok.
Maybe we should implement a workaround to use ArrayBuffer in environnement that does not support Buffer ?
Sorry, something went wrong.
Closing it as it is working when using a polyfill to globalThis.Buffer
@theodem I'd reopen the issue because it should be working without polyfill.
No branches or pull requests
What version of
drizzle-orm
are you using?0.29.1
What version of
drizzle-kit
are you using?No response
Describe the Bug
sqliteTable('table', { id: integer('id', { mode: 'number' }).primaryKey({ autoIncrement: true }), binary: blob('binary').notNull().type<ArrayBuffer>(), });
When i query the binary column, the typeof binary is a string which is the UTF8 encoded version of initial ArrayBuffer.
Using turso driver with libsql dev environment
Expected behavior
No response
Environment & setup
No response
The text was updated successfully, but these errors were encountered: