Skip to content

[BUG]: drizzle-kit pull: Custom GelDB Type error / Unable to use non-default Gel module #4404

Open
@xerullian

Description

@xerullian

Report hasn't been filed before.

  • 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.

  1. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions