mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-13 06:23:47 +00:00
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a69642c2865f41a4b141ddf39a198a3fc2e09
13 lines
291 B
Rust
13 lines
291 B
Rust
use crate::db::{ClipboardDb, SqliteClipboardDb, StashError};
|
|
|
|
pub trait WipeCommand {
|
|
fn wipe(&self) -> Result<(), StashError>;
|
|
}
|
|
|
|
impl WipeCommand for SqliteClipboardDb {
|
|
fn wipe(&self) -> Result<(), StashError> {
|
|
self.wipe_db()?;
|
|
log::info!("Database wiped");
|
|
Ok(())
|
|
}
|
|
}
|