Verify that SQLite files can be opened using Datasette
Install this plugin in the same environment as Datasette.
$ datasette install datasette-verify
To confirm that files can be opened by Datasette, run the following:
datasette verify file1.db file2.db
You can pass one or more file paths.
The command will exit silently with a 0 exit code if the files are all valid SQLite databases that Datasette can open.
It will exit with a 1 exit code and display an error for the first file it finds that is not valid.
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-verify python3 -mvenv venv source venv/bin/activate
Or if you are using
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests: