From 0ebe6c55817cc6d8fa5b0c5e46add66f5586ca37 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 12 Apr 2022 17:27:06 -0400 Subject: [PATCH] Updated Usage (markdown) --- Usage.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Usage.md b/Usage.md index 801d0de..9728736 100644 --- a/Usage.md +++ b/Usage.md @@ -192,6 +192,21 @@ bookmarks, you can use the `ONLY_NEW` environment variable. This is useful if you want to import a bookmark dump periodically and want to skip broken links which are already in the index. +## SQL Shell Usage + +Explore the SQLite3 DB a bit to see whats available using the SQLite3 shell: +```bash +cd ~/archivebox +sqlite3 index.sqlite3 + +# example usage: +SELECT * FROM snapshot; +UPDATE auth_user SET email = 'someNewEmail@example.com' WHERE username = 'someUsernameHere'; +... +``` + +More info: https://github.com/ArchiveBox/ArchiveBox/wiki/Upgrading-or-Merging-Archives#modify-the-archivebox-sqlite3-db-directly + ## Python Shell Usage Explore the Python API a bit to see whats available using the archivebox shell: