cli icon indicating copy to clipboard operation
cli copied to clipboard

Support drizzle ORM for generating types

Open WcaleNieWolny opened this issue 3 months ago • 1 comments

Is your feature request related to a problem? Please describe. I am always quite frustrated when I have to generate the drizzle ORM scheme by hand. I'd love to use Supabase SDK to do it, but it's not possible. Sometimes I make a mistake in the scheme and then I have weird errors in the backend.

Describe the solution you'd like I'd love the supabase gen types to support drizzle as a language so it can generate the schema file file for me

Describe alternatives you've considered I could write a tool that takes the typescript definition and translates it to drizzle schema or use ChatGPT or other AI tool to translate it, but this would be prone to bugs and mistakes, so it's not a great solution

Additional context Here is the link for the drizzle documentation: https://orm.drizzle.team/docs/overview

WcaleNieWolny avatar Nov 18 '25 18:11 WcaleNieWolny

Drizzle is not a language and already generates it's own schema. This is a nice to have that I don't think should be an option in the CLI as it just adds more maintenance burden to the Supabase CLI team for not much benefit.

silentworks avatar Nov 26 '25 14:11 silentworks