nicoalbanese / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
2.39k stars 107 forks source link

Drizzle multi project schema #92

Open jacob-burgess opened 7 months ago

jacob-burgess commented 7 months ago

DRAFT

I implemented a setup for Drizzle's "multi-project schema" on my happy path:

Basically, creates mysqlTable function in the src/lib/db/index file using the syntax for multi-project schema. Then, depending on the user's choice from the cli, will either import mysqlTable from drizzle directly or import it from our specifically created function.

Not sure if this is the best way to implement this in this repo, as im not too familiar. But after playing around in here for the first time today, this was the first modification i made so figured i'd put this up as a draft. If its something others are interested in, i can look into implementing for pg + sqlite.