aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/client/search/interactive.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/turtle/src/command/client/search/interactive.rs')
-rw-r--r--crates/turtle/src/command/client/search/interactive.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/crates/turtle/src/command/client/search/interactive.rs b/crates/turtle/src/command/client/search/interactive.rs
index 380fc33b..1d067e50 100644
--- a/crates/turtle/src/command/client/search/interactive.rs
+++ b/crates/turtle/src/command/client/search/interactive.rs
@@ -6,7 +6,10 @@ use std::{
#[cfg(unix)]
use std::io::Read as _;
-use crate::atuin_common::{shell::Shell, utils::Escapable as _};
+use crate::{
+ atuin_client::database::ClientSqlite,
+ atuin_common::{shell::Shell, utils::Escapable as _},
+};
use eyre::Result;
use time::OffsetDateTime;
use unicode_width::{UnicodeWidthChar, UnicodeWidthStr};
@@ -17,7 +20,7 @@ use super::{
history_list::{HistoryList, ListState},
};
use crate::atuin_client::{
- database::{Context, Database, current_context},
+ database::{Context, current_context},
history::{History, HistoryId, HistoryStats, store::HistoryStore},
settings::{
CursorStyle, ExitMode, FilterMode, KeymapMode, PreviewStrategy, SearchMode, Settings,
@@ -149,7 +152,7 @@ struct StyleState {
impl State {
async fn query_results(
&mut self,
- db: &mut dyn Database,
+ db: &mut ClientSqlite,
smart_sort: bool,
) -> Result<Vec<History>> {
let results = self.engine.query(&self.search, db).await?;
@@ -1550,7 +1553,7 @@ fn compute_popup_placement(
pub(crate) async fn history(
query: &[String],
settings: &Settings,
- mut db: impl Database,
+ mut db: ClientSqlite,
history_store: &HistoryStore,
theme: &Theme,
) -> Result<String> {