Add database level pagination and filtering for efficiency

This commit is contained in:
George Wu
2026-02-21 13:17:33 -08:00
parent 0f5b54eef5
commit 46a65c322c
4 changed files with 402 additions and 4 deletions
+18
View File
@@ -137,6 +137,24 @@ impl FileReadPort for StubFileReadPort {
async fn get_blob_hash(&self, _file_id: &str) -> Result<String, DomainError> {
Ok(String::new())
}
async fn search_files_paginated(
&self,
_folder_id: Option<&str>,
_criteria: &SearchCriteriaDto,
_user_id: &str,
) -> Result<(Vec<File>, usize), DomainError> {
Ok((Vec::new(), 0))
}
async fn count_files(
&self,
_folder_id: Option<&str>,
_criteria: &SearchCriteriaDto,
_user_id: &str,
) -> Result<usize, DomainError> {
Ok(0)
}
}
// ---------------------------------------------------------------------------