I've found the built-in support for SQLite is a great way to get started. But more often than not, my team is building apps that talk to Postgres or other remote databases. So, along with all the other project setup options, I'm proposing an additional option to choose your target database:
In practice, I imagine this functionality would work similarly to the way one would bootstrap a project in Prisma 1, when it prompted you with the option to create a new database. If you chose that option, I believe it then prompted you for which type of database you'd like to create. And then, based on that choice, it would create a docker-compose.yml file to run that database in a container. I believe pal c will always create a new database, so the simplest approach might be to just give the user an option of the type.
Eventually, it might also be helpful to ask the user for a connection string, but that's simple enough to change that we may not need to do it right away
I've found the built-in support for SQLite is a great way to get started. But more often than not, my team is building apps that talk to Postgres or other remote databases. So, along with all the other project setup options, I'm proposing an additional option to choose your target database:
In practice, I imagine this functionality would work similarly to the way one would bootstrap a project in Prisma 1, when it prompted you with the option to create a new database. If you chose that option, I believe it then prompted you for which type of database you'd like to create. And then, based on that choice, it would create a
docker-compose.yml
file to run that database in a container. I believepal c
will always create a new database, so the simplest approach might be to just give the user an option of the type.Eventually, it might also be helpful to ask the user for a connection string, but that's simple enough to change that we may not need to do it right away