Skip to content

Commit 379cdc3

Browse files
docs
1 parent f57bbee commit 379cdc3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,12 @@ sqlite-http-refresh file:example.db?_journal=WAL&_sync=NORMAL&_timeout=5000&_txl
107107

108108
- **Cron (Linux/macOS):** You can set up cron jobs to execute a script at specified intervals (e.g., every minute, hour, or day). This script would then connect to your SQLite database and perform the desired INSERT operations.
109109

110-
```sh
111-
sqlite3 -cmd ".load /usr/lib/httpcache.so" "INSERT INTO temp.http_request SELECT url FROM http_response WHERE unixepoch() - ((julianday(response_time) - 2440587.5) * 86400.0) > 3600;"
110+
Example:
111+
112+
```sql
113+
INSERT INTO temp.http_request SELECT url FROM http_response WHERE unixepoch() - unixepoch(response_time) > :ttl
112114
```
115+
*ttl is Time to Live in seconds*
113116

114117
- **Task Scheduler (Windows):** Similar to cron, Windows Task Scheduler allows you to schedule tasks, including running scripts or programs that interact with SQLite.
115118

0 commit comments

Comments
 (0)