Neon and Drizzle ORM: Can my schema.ts create my tables in Neon?

As the title suggests, I was wondering if Drizzle ORM can create my tables in Neon from my schema.ts, or if I need to first create my tables in Neon with SQL, and then just create my schema.ts to reflect those tables. Thank you!
6 Replies
NinjaBunny
NinjaBunny16mo ago
I believe you can use the introspection tool that will create your tables based on the preexisting schema
NinjaBunny
NinjaBunny16mo ago
find the introspection tool
Nicolas
NicolasOP16mo ago
oh that's cool, so that will take my Neon DB and create a schema from it looks like, that will work
NinjaBunny
NinjaBunny16mo ago
I believe so, if that's wrong please let me know
Adrastus
Adrastus16mo ago
You can make schema and push:pg it to neon
Want results from more Discord servers?
Add your server