mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
update resultSet in data provider (#12478)
This commit is contained in:
@@ -295,6 +295,11 @@ class DataResourceTable extends GridTableBase<any> {
|
|||||||
public convertData(set: ResultSetSummary): Promise<void> {
|
public convertData(set: ResultSetSummary): Promise<void> {
|
||||||
return this._gridDataProvider.convertAllData(set);
|
return this._gridDataProvider.convertAllData(set);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public updateResult(resultSet: ResultSetSummary): void {
|
||||||
|
super.updateResult(resultSet);
|
||||||
|
this._gridDataProvider.updateResultSet(resultSet);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class DataResourceDataProvider implements IGridDataProvider {
|
export class DataResourceDataProvider implements IGridDataProvider {
|
||||||
@@ -372,6 +377,10 @@ export class DataResourceDataProvider implements IGridDataProvider {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public updateResultSet(resultSet: ResultSetSummary): void {
|
||||||
|
this._resultSet = resultSet;
|
||||||
|
}
|
||||||
|
|
||||||
public async convertAllData(result: ResultSetSummary): Promise<void> {
|
public async convertAllData(result: ResultSetSummary): Promise<void> {
|
||||||
// Querying 100 rows at a time. Querying large amount of rows will be slow and
|
// Querying 100 rows at a time. Querying large amount of rows will be slow and
|
||||||
// affect table rendering since each time the user scrolls, getRowData is called.
|
// affect table rendering since each time the user scrolls, getRowData is called.
|
||||||
|
|||||||
Reference in New Issue
Block a user