feat: Metriken, Token-Auswertung und Protokollierung am Ende der Antwort (#1050)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 09:05:20 +01:00
parent b4a3957f8a
commit 2dc8f9193c
9 changed files with 942 additions and 17 deletions

View File

@ -130,9 +130,8 @@ impl Store {
return Ok(0);
}
// `zeit` ist ISO 8601 in UTC und sortiert deshalb als Text.
let sql = format!(
"DELETE FROM {table} WHERE zeit < strftime('%Y-%m-%dT%H:%M:%SZ', 'now', ?1)"
);
let sql =
format!("DELETE FROM {table} WHERE zeit < strftime('%Y-%m-%dT%H:%M:%SZ', 'now', ?1)");
self.connection()
.execute(&sql, [format!("-{days} days")])
.map_err(db)