drizzle-team / drizzle-team/drizzle-orm

[BUG]: NodeJS Buffer used in SQLiteBigInt.mapToDriverValue

Open
#2,043 6 comments 2 reactions 0 assignees View on GitHub
bug db/sqlite driver/d1 priority
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### What version of `drizzle-orm` are you using?

0.30.3

### What version of `drizzle-kit` are you using?

1.0.31

### Describe the Bug

I am running a drizzle client based on drizzle-orm/d1 and schema generated from datatypes defined in drizzle-orm/sqlite-core in a workerd runtime.

Writing to a column of type `blob(mode: bigInt)` gives back this error `ReferenceError: Buffer is not defined`.

I am assuming this is because I am running the orm in workerd which doesn't implement the Buffer API.

### Expected behavior

Should work on workerd out of the box.

### Environment & setup

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.