* fix(database): snapshot SQLite backups online Use SQLite's online backup API for downloadable backups and SQLite migration exports instead of checkpointing then reading the live database file. The regression test validates a backup made while writes continue. * style(database): group SQLite driver imports * fix(database): bound online backup retries Use a single backup step and a bounded connection-acquisition/retry context. Tighten temporary-file cleanup and regression assertions while removing the unused checkpoint helper. * test(database): cover existing backup destinations * fix(database): harden SQLite snapshot lifecycle Sweep interrupted snapshot directories at SQLite startup, keep rollback-journal backups incremental, and make caller-owned cleanup explicit. Reuse one scheduled Telegram snapshot across administrators and make the direct SQLite driver dependency explicit. --------- Co-authored-by: PathGao <gaoyanbo@gaoyanbodeMacBook-Air.local> |
||
|---|---|---|
| .. | ||
| tgbot.go | ||
| tgbot_callback_auth_test.go | ||
| tgbot_client.go | ||
| tgbot_delete_after_test.go | ||
| tgbot_event.go | ||
| tgbot_inbound.go | ||
| tgbot_report.go | ||
| tgbot_router.go | ||
| tgbot_send.go | ||
| tgbot_test.go | ||