Create database if not exists
Is there a way to have create a database if it not exists? After i create my schema and a run the first migration, i would expect drizzle to create a database that's specified in my connection string if it doesn't exist
1 Reply
FWIW I wrote a node script to create the database using postgresjs:
reset-db.js
And I added a script to my package.json file were I call it for local development.
package.json
I wanted a similar behavior as well because I was coming from Elixir's Ecto library where it handles it for you when you run mix ecto.create