drizzle-team / drizzle-team/drizzle-orm
[BUG]: drizzle-kit pull: Custom GelDB Type error / Unable to use non-default Gel module
- 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.41.0
### What version of `drizzle-kit` are you using?
0.30.6
### Other packages
_No response_
### Describe the Bug
Using Gel database, with drizzle-kit Gel adapter.
Minimal reproduction
[https://github.com/xerullian/drizzle-gel-enum]()
## Problems
1. `drizzle-kit pull` fails with a `TypeError` when any Gel schema contains a custom-defined enum.
I believe this issue may have to do with drizzle-kit pull not able to reads Gel schema Enums.
2. `drizzle-kit pull` succeeds, but creates 0 schema when types are defined within a non-default module (e.g., `module foo {}`).
I believe this issue is related to `drizzle-kit pull` not reading schema in modules that are not 'module default'.
## Environment
* **Bun:** `1.2.2` (also tested with Node v22.13.1)
* **`drizzle-kit`:** `0.30.6`
* **`drizzle-orm`:** `0.41.0`
* **`gel-cli`:** `7.2.0+70c7e2`
* **Gel Server:** `6.4+4e5cda`
* **Gel:** `2.0.2`
* **OS:** `Nobara Linux 41 (KDE)`
Contributor guide
Assessment
This issue has not been assessed yet.