Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drizzle multi project schema #92

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant