From fef407ec86ffcc423cf8a8e1f563471c48129da6 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 24 May 2026 16:26:12 +0300 Subject: [PATCH] db: show database path in `stash db stats` Signed-off-by: NotAShelf Change-Id: I8e840d2bdf4f1ac6ecaf1d8a2954bf846a6a6964 --- src/db/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/db/mod.rs b/src/db/mod.rs index 90b3c13..7af285b 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -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" ))