drawdb icon indicating copy to clipboard operation
drawdb copied to clipboard

[Suggestion] ORM export support

Open DarthGigi opened this issue 1 year ago • 8 comments

It would be a nice feature if DrawDB could export the database schema source for ORM's like: Prisma, Drizzle.

DarthGigi avatar May 01 '24 13:05 DarthGigi

Prisma yes, as for others maybe we can have some plugin system

1ilit avatar May 06 '24 08:05 1ilit

I personally never used Drizzle and only use Prisma in my projects. By far, Prisma is the most popular ORM. However, Drizzle is gaining a lot of traction from what I've seen, so I do think Drizzle should be included as native support. Other ORM's could make use of a plugin system.

DarthGigi avatar May 06 '24 08:05 DarthGigi

What about TypeORM support also?

jcmeloi avatar May 08 '24 11:05 jcmeloi

yes drizzle

shimondoodkin avatar May 09 '24 01:05 shimondoodkin

It would also be nice to have support for EF Core and Laravel Eloquent models and migrations, either through a plugin system or built-in natively.

digvijayad avatar May 23 '24 06:05 digvijayad

drizzle is fairly easy to achieve. https://orm.drizzle.team/kit-docs/commands#introspect--pull just make a sqlite.db from the sql schema and call introspect on it and you are good to go. would be nice to have a button for this though :-)

spirobel avatar May 24 '24 07:05 spirobel

Prisma yes, as for others maybe we can have some plugin system

how to export or use realation for orm like prisma ? is that posible ?

mzcoder-hub avatar Jun 13 '24 15:06 mzcoder-hub