mirror of
https://github.com/NotAShelf/stash.git
synced 2026-06-23 13:13:27 +00:00
db: show database path in stash db stats
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I8e840d2bdf4f1ac6ecaf1d8a2954bf846a6a6964
This commit is contained in:
parent
f5789aa43d
commit
fef407ec86
1 changed files with 3 additions and 1 deletions
|
|
@ -1141,13 +1141,15 @@ impl SqliteClipboardDb {
|
||||||
#[cfg(not(feature = "encryption"))]
|
#[cfg(not(feature = "encryption"))]
|
||||||
let undecryptable: i64 = encrypted;
|
let undecryptable: i64 = encrypted;
|
||||||
|
|
||||||
|
let db_path = self.db_path.display();
|
||||||
Ok(format!(
|
Ok(format!(
|
||||||
"Database Statistics:\n\nEntries:\nTotal: \
|
"Database Statistics:\n\nEntries:\nTotal: \
|
||||||
{total}\nActive: {active}\nExpired: \
|
{total}\nActive: {active}\nExpired: \
|
||||||
{expired}\nWith TTL: \
|
{expired}\nWith TTL: \
|
||||||
{with_expiration}\nEncrypted: \
|
{with_expiration}\nEncrypted: \
|
||||||
{encrypted}\nUndecryptable: \
|
{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: \
|
({size_bytes} bytes)\nPages: {page_count}\nPage size: \
|
||||||
{page_size} bytes"
|
{page_size} bytes"
|
||||||
))
|
))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue