How to Create an Empty SQLite Database
When it comes to creating an SQLite database for use with Prisma, don’t overthink it - the process is actually quite simple. All you need to do is create an empty file.
To illustrate, let’s say you want to create a SQLite database called storage.db
. You can easily achieve this by using the touch
command from the command line:
1 | $ touch storage.db |
This command will create an empty SQLite database file named storage.db
. The same approach can be applied if you need to duplicate a database with all its tables or create a backup - simply copy the file.
Tags: SQLite, database initialization, Prisma, touch command