I checked the docs but it didn't say anything much about it, weirdly.
If I call db.create_all(), does there need to be some sort of check as to whether the database already exists, lest it be overwritten?
The method only creates tables; so it is up to you to make sure the database is already created.
The database has to exist and if the table already exists, you'll receive an error from the database. It will not overwrite or delete tables.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With