| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
sqlite-web is a web-based SQLite database browser written in Python.
Project dependencies:
$ pip install sqlite-web$ sqlite_web /path/to/database.dbIf you have multiple databases:
$ sqlite_web /path/to/db1.db /path/to/db2.db /path/to/db3.dbOr run with docker:
$ docker run -it --rm \
-p 8080:8080 \
-v /path/to/your-data:/data \
ghcr.io/coleifer/sqlite-web:latest \
db_filename.dbOr run with the high-performance gevent WSGI server (requires gevent):
$ sqlite_wsgi /path/to/db.dbThen navigate to http://localhost:8080/ to view your database.
The index page shows some basic information about the database, including the number of tables and indexes, as well as its size on disk:
The structure tab displays information about the structure of the table, including columns, indexes, triggers, and foreign keys (if any exist). From this page you can also create, rename or drop columns and indexes.
Columns are easy to add, drop or rename:
The content tab displays all the table data. Links in the table header can be used to sort the data, foreign-keys are shown as clickable links, and row-data can be copied easily:
The query tab allows you to execute queries on a table. The query results are displayed in a table and can be exported to either JSON or CSV. Multiple queries can be executed, and results for each will be displayed. Data-modifying queries report the number of rows changed.
The import tab supports importing CSV and JSON files into a table. There is an option to automatically create columns for any unrecognized keys in the import file:
The export tab supports exporting all, or a subset, of columns:
Basic INSERT, UPDATE and DELETE queries are supported:
When configured with --enable-load or --enable-filesystem additional databases can be loaded or unloaded at run-time:
The syntax for invoking sqlite-web is:
$ sqlite_web [options] /path/to/database.db /path/to/another.dbThe following options are available:
A Dockerfile is provided with sqlite-web. To use:
#
# Use GitHub container registry:
#
$ docker run -it --rm \
-p 8080:8080 \
-v /path/to/your-data:/data \
ghcr.io/coleifer/sqlite-web:latest \
db_filename.db
#
# OR build the image yourself (run from the repository root):
#
$ docker build -t coleifer/sqlite-web -f docker/Dockerfile .
$ docker run -it --rm \
-p 8080:8080 \
-v /path/to/your-data:/data \
coleifer/sqlite-web \
db_filename.dbCommand-line options can be passed in when running via Docker. For example, if you want to run it at a separate URL prefix, for example /sqlite-web/:
$ docker run -it --rm \
-p 8080:8080 \
-v /path/to/your-data:/data \
ghcr.io/coleifer/sqlite-web:latest \
db_filename.db \
--url-prefix="/sqlite-web/"
To run sqlite-web with the high-performance gevent WSGI server, you can run sqlite_wsgi instead of sqlite_web:
$ sqlite_wsgi /path/to/db.dbMore complete example:
$ sqlite_wsgi -p 8000 -H '0.0.0.0' /path/to/db1.db /path/to/db2.db| Back | FazBrowse Home | New Git URL |