
Setup or upgrade the database
setup_database.Rd
This function sets up a new SQLite database or upgrades it if it already exists. The function will:
Check the current version of the database.
Create a new one if none exists or upgrades an existing database to the target version.
Handle errors during the setup or upgrade process and revert any changes.
Examples
if (FALSE) { # \dontrun{
setup_database(list(database = "2.0.0"))
} # }