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
NinjaBunny2y ago
I believe you can use the introspection tool that will create your tables based on the preexisting schema
NinjaBunny
NinjaBunny2y ago
find the introspection tool
Nicolas
NicolasOP2y ago
oh that's cool, so that will take my Neon DB and create a schema from it looks like, that will work
NinjaBunny
NinjaBunny2y ago
I believe so, if that's wrong please let me know
Adrastus
Adrastus2y ago
You can make schema and push:pg it to neon

Did you find this page helpful?