дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 19:25:54 +02:00
feat(database): search and pagination on result query (#1432)
Adds a search bar to query result grids (match case / words / regex, previous/next occurrence, Filter rows) and a pager for console results (first/previous/next/last, page size). Later pages re-run the read-only query with a skip, which every driver reads past without decoding, so only one page crosses IPC; Last counts rows with the statement wrapped so a trailing line comment can't swallow the closing parenthesis. Closes #1431 Co-authored-by: kidp2h <[email protected]>
Цей коміт міститься в:
1 джерело
7856fabbfe
коміт
75c4ca0be8
22 files changed
+973
-97
No files matched your search
@@ -250,9 +250,10 @@ pub async fn db_execute(
|
||||
request: RequestId,
|
||||
id: String,
|
||||
statements: Vec<SqlStatement>,
|
||||
skip: u32,
|
||||
max_rows: u32,
|
||||
) -> IdeResult<Vec<StatementOutcome>> {
|
||||
ide_host::ops::db::execute(&state.host, window.label(), request, &id, statements, max_rows).await
|
||||
ide_host::ops::db::execute(&state.host, window.label(), request, &id, statements, skip, max_rows).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
||||
Reference in new issue
Заблокувати користувача