db: show database path in stash db stats

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I8e840d2bdf4f1ac6ecaf1d8a2954bf846a6a6964
This commit is contained in:
raf 2026-05-24 16:26:12 +03:00
commit fef407ec86
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -1141,13 +1141,15 @@ impl SqliteClipboardDb {
#[cfg(not(feature = "encryption"))]
let undecryptable: i64 = encrypted;
let db_path = self.db_path.display();
Ok(format!(
"Database Statistics:\n\nEntries:\nTotal: \
{total}\nActive: {active}\nExpired: \
{expired}\nWith TTL: \
{with_expiration}\nEncrypted: \
{encrypted}\nUndecryptable: \
{undecryptable}\n\nStorage:\nSize: {size_mb:.2} MB \
{undecryptable}\n\nStorage:\nPath: \
{db_path}\nSize: {size_mb:.2} MB \
({size_bytes} bytes)\nPages: {page_count}\nPage size: \
{page_size} bytes"
))