Chore/sql editor pagination of results (#26857)

* Add pagination to SQL editor for results longer than 100 rows

* Change pagination to automatically setting a limit

* Fix

* Address initial comments

* Compress SQL editor actions when ai assistant is open and screen is of a certain width

* Fix checking

* Add some fixes and tests

* Add a message if the query had an error and the limit was applied

* Rename to suffixWithLimit

* Small refactor and fix
This commit is contained in:
Joshen Lim
2024-06-04 16:20:18 +08:00
committed by GitHub
parent 403c981aae
commit 9e45053d25
17 changed files with 430 additions and 214 deletions

View File

@@ -15,6 +15,7 @@ export type ExecuteSqlVariables = {
queryKey?: QueryKey
handleError?: (error: ResponseError) => { result: any }
isRoleImpersonationEnabled?: boolean
autoLimit?: number
}
export async function executeSql(