drizzle-team / drizzle-team/drizzle-orm

[BUG]: Drizzle Studio cannot handle the big integer in database.

Open
#4,695 0 comments 0 reactions 0 assignees View on GitHub
bug drizzle/studio
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Report hasn't been filed before.

- [x] 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.44.2

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

0.31.4

### Other packages

_No response_

### Describe the Bug

The Error message is as following:
![Image](https://github.com/user-attachments/assets/2320b951-ca9e-492f-abd6-4c42036b50cb)

I can handle this issue by set `intMode` to `bigint` in the `./src/index.ts` as following:
```
const client = createClient({
url: process.env.DB_FILE_NAME!,
intMode: 'bigint',
});

const db = drizzle({ client });
```

But I don't know how to deal with the big interger which is larger than 2^53-1 in Drizzle Studio.

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.