From 4fd448e29e5eee78259f94bc01fee45010ee9409 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Sun, 9 Jun 2024 18:11:43 +0900 Subject: [PATCH] add sql example --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 90c51aa..f178212 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,24 @@ Python 3.12 (works with standard libraries only) ## Tips The program is a single file `./src/browser_history_merger/__init__.py` and can be used as a script. +### Example SQL to see the history + +```sql +SELECT + browsers.name, + visits.title, + visits.url, + datetime(visits.visit_time / 1000000 - 11644473600, 'unixepoch') +FROM + visits, + browsers +WHERE + visits.browser = browsers.id +ORDER by + visits.visit_time + DESC LIMIT 0, 100 +``` + ## Todo - exporting - JSON output