Using same schema but different databases #3396
Unanswered
PaquitoSoft
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Have you considered using pglite instead of sqlite? There are some meaningful differences between sqlite and pg dialects, but pglite is basically a drop-in replacement. As long as you aren't using any unsupported PG extensions. Drizzle has first-class support for pglite too. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there ✋
I'm ussing Drizzle in the application I'm building and the first interation was successful but I'm struggling a bit when trying to setup the necessary resources for my integration tests.
I'm using Supabase (Postgreql) for managing my application data but, when running my integration tests, I would prefer to use a local Sqlite database.
I thought about using
drizzle-kit
to create a db file, push the schema, seed some data and then run the tests.I currently have tow config files:
As part of my tests setup, I run the
dizzle-kit push
command (using my test config) but I'm not getting the schema applied to the database (the database file is actually created). This is the response I get back:Something similar happens when I try to generate migration files. I get this message back:
Does anyone know if I'm using a wrong reasoning?
Am I missing something in this setup?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions