filtered navigation batched

This commit is contained in:
Priec
2026-09-05 09:03:54 +02:00
parent 55689d0a8d
commit 52cfbd7070
10 changed files with 145 additions and 21 deletions

View File

@@ -1222,6 +1222,28 @@ impl GrpcClient {
self.search_client.search(request).await
}
pub async fn get_filtered_table_row(
&mut self,
profile_name: String,
table_name: String,
free_query: String,
must: Vec<ColumnConstraint>,
offset: u32,
order: Option<SearchOrder>,
) -> Result<GetTableDataResponse> {
let request = self.authenticated_request(SearchRequest {
profile_name,
table_name: Some(table_name),
free_query,
must,
limit: Some(1),
offset: Some(offset),
order,
version_scope: 0,
})?;
self.search_client.get_filtered_row(request).await
}
pub async fn count_table_rows(
&mut self,
profile_name: String,

View File

@@ -21,6 +21,13 @@ impl SearchGrpc {
Ok(self.client.search(request).await?.into_inner())
}
pub async fn get_filtered_row(
&mut self,
request: Request<SearchRequest>,
) -> Result<common::proto::komp_ac::tables_data::GetTableDataResponse> {
Ok(self.client.get_filtered_row(request).await?.into_inner())
}
pub async fn count(&mut self, request: Request<SearchRequest>) -> Result<SearchCountResponse> {
Ok(self.client.count(request).await?.into_inner())
}