mirror of
https://github.com/NotAShelf/stash.git
synced 2026-05-17 12:44:14 +00:00
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I4bb649a5161460d8794dc5c93baa6cc46a6a6964
11 lines
328 B
Rust
11 lines
328 B
Rust
use crate::db::{ClipboardDb, SqliteClipboardDb, StashError};
|
|
|
|
pub trait QueryCommand {
|
|
fn query_delete(&self, query: &str) -> Result<usize, StashError>;
|
|
}
|
|
|
|
impl QueryCommand for SqliteClipboardDb {
|
|
fn query_delete(&self, query: &str) -> Result<usize, StashError> {
|
|
<Self as ClipboardDb>::delete_query(self, query)
|
|
}
|
|
}
|