Skip to content

Drizzle multi project schema#92

Draft
jacob-burgess wants to merge 3 commits intonicoalbanese:masterfrom
jacob-burgess:drizzle-multi-project-schema
Draft

Drizzle multi project schema#92
jacob-burgess wants to merge 3 commits intonicoalbanese:masterfrom
jacob-burgess:drizzle-multi-project-schema

Conversation

@jacob-burgess
Copy link

DRAFT

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

  • drizzle
  • mysql
  • planetscale

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments