mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Move query history into extension (#19794)
* initial * more * Remove connectionId * cleanup * cleanup * Remove core contributions, add to panel by default * Add enabled state * Update config * cleanup * Move * Remove newlines * update README
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
# Query History *(preview)*
|
||||
|
||||
Adds a Query History panel for viewing and running past executed queries.
|
||||
Adds a Query History view for viewing and running past executed queries.
|
||||
|
||||
### How do I view the history?
|
||||
|
||||
Query History is displayed as a tab in the tab panel, which is toggled by the **View: Toggle Panel** command.
|
||||
Query History is initially as a tab in the tab panel, which is toggled by the **View: Toggle Panel** or **Query History: Focus on Query History View** commands.
|
||||
|
||||

|
||||
|
||||
This view can be moved similar to other views into other view containers by dragging and dropping into the desired view container.
|
||||
|
||||
Initially this view will be empty but once you execute a query editor that will be captured in the window - with a separate row displayed for every query executed.
|
||||
|
||||

|
||||
@@ -18,6 +20,12 @@ Each row consists of 4 parts :
|
||||
- Connection Info : The Server and Database the query was executed against
|
||||
- Timestamp : The date and time the query was executed
|
||||
|
||||
### Disabling/Enabling Query History
|
||||
|
||||
Query History capture can be enabled/disabled in one of two ways :
|
||||
|
||||
1. Through the action button on the view container - this will be a ⏸️ when capture is enabled and clicking it will disable capture until re-enabled. When capture is disabled this button will be a ▶ and clicking it will enable capture until disabled.
|
||||
2. By running the **Query History: Pause Query History Capture** or **Query History: Start Query History Capture** commands from the command palette.
|
||||
### Query History row actions
|
||||
|
||||
Right clicking on a history row will bring up a menu with a number of actions available.
|
||||
@@ -42,16 +50,9 @@ This will permanently delete **ALL** history rows.
|
||||
|
||||
This action is also available from the command palette (**Query History: Clear All History**) and as an action button on the panel.
|
||||
|
||||
#### Pause/Start Query History Capture
|
||||
|
||||
This will Pause or Start Query History Capture. While paused no data will be stored for queries run.
|
||||
|
||||
This action is also available from the command palette (**Query History: Toggle Query History Capture**) and as an action button
|
||||
on the panel.
|
||||
|
||||
### Data Storage
|
||||
|
||||
Currently all information is stored in-memory and not persisted upon application exit.
|
||||
Currently all information is stored in-memory and not persisted upon application exit. There is no limit to the number of entries stored, new entries will be continuously added as long as capture is enabled unless entries are deleted or the entire history is cleared.
|
||||
|
||||
## Code of Conduct
|
||||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
||||
|
||||
Reference in New Issue
Block a user