mirror of
https://github.com/qwjyh/browser-history-merger.git
synced 2024-11-24 16:01:06 +09:00
add sql example
This commit is contained in:
parent
395ddb72cd
commit
4fd448e29e
1 changed files with 18 additions and 0 deletions
18
README.md
18
README.md
|
@ -31,6 +31,24 @@ Python 3.12 (works with standard libraries only)
|
||||||
## Tips
|
## Tips
|
||||||
The program is a single file `./src/browser_history_merger/__init__.py` and can be used as a script.
|
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
|
## Todo
|
||||||
- exporting
|
- exporting
|
||||||
- JSON output
|
- JSON output
|
||||||
|
|
Loading…
Reference in a new issue