SQL Query example

Added SQL Query example to delete events older than 30 days.
This commit is contained in:
Václav Navrátil 2023-07-17 18:25:14 +02:00 committed by GitHub
parent 4adad4c3a9
commit bef296e53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,8 @@ seen" policy.
```console
PRAGMA foreign_keys = ON;
TODO!
DELETE FROM event WHERE first_seen < CAST(strftime('%s', date('now', '-30 day')) AS INT);
```
### Delete Profile Events with No Recent Events