You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#28
- Recursively go through the object explorer and cache all objects
- If we're on a system database, take steps to work around this edge
case (eg the root node will be the server, so don't cache any other
databases)
- Lualine support
- Refresh cache
- Cancel cache refresh (eg when switching databases)
- Keymaps, user commands, etc
- Docs
|`n`|`NewQuery`|`new_query()`| Open a new buffer for sql queries |
225
-
|`c`|`Connect`|`connect()`| Connect the current buffer (you'll be prompted to choose a connection) |
226
-
|`x`|`ExecuteQuery`|`execute_query()`| Execute the selection, or the whole buffer. If you are disconnected, it will try to connect to the `default` connection in your `connections.json`. |
227
-
|`l`|`CancelQuery`|`cancel_query()`| Cancel the currently running query. |
228
-
|`q`|`Disconnect`|`disconnect()`| Disconnects the current buffer |
229
-
|`s`|`SwitchDatabase`|`switch_database()`| Prompts, then switches to a database that is on the currently connected server |
230
-
|`d`|`NewDefaultQuery`|`new_default_query()`| Opens a new query and connects to the connection called `default` in your `connections.json`. Useful when combined with the `promptForDatabase` option in the `connections.json`. |
231
-
|`s`|`SaveQueryResults`|`save_query_results()`| When in a query result buffer, save the query result by giving a file path with an extension of `.csv`, `.json`, `.xml`, `.xlsx` or `.xls`|
232
-
|`r`|`RefreshIntellisense`|`refresh_intellisense_cache()`| Rebuild the intellisense cache |
233
-
|`e`|`EditConnections`|`edit_connections()`| Open the [connections file](#connections-json-file) for editing |
234
-
||`BackupDatabase`|`backup_database()`| Inserts an SQL command to back up the currently connected database |
235
-
||`RestoreDatabase`|`restore_database()`| Prompts for a `.bak` file, then inserts an SQL command to restore the database from that file |
221
+
| Key Map | User Command | Function | Description |
|`n`|`NewQuery`|`new_query()`| Open a new buffer for sql queries |
224
+
|`c`|`Connect`|`connect()`| Connect the current buffer (you'll be prompted to choose a connection) |
225
+
|`x`|`ExecuteQuery`|`execute_query()`| Execute the selection, or the whole buffer. If you are disconnected, it will try to connect to the `default` connection in your `connections.json`. |
226
+
|`f`|`Find`|`find_object()`| Find a table/view/stored procedure/function and generate a script |
227
+
|`l`|`CancelQuery`|`cancel_query()`| Cancel the currently running query. |
228
+
|`q`|`Disconnect`|`disconnect()`| Disconnects the current buffer |
229
+
|`s`|`SwitchDatabase`|`switch_database()`| Prompts, then switches to a database that is on the currently connected server |
230
+
|`d`|`NewDefaultQuery`|`new_default_query()`| Opens a new query and connects to the connection called `default` in your `connections.json`. Useful when combined with the `promptForDatabase` option in the `connections.json`. |
231
+
|`s`|`SaveQueryResults`|`save_query_results()`| When in a query result buffer, save the query result by giving a file path with an extension of `.csv`, `.json`, `.xml`, `.xlsx` or `.xls`|
232
+
|`r`|`RefreshCache`|`refresh_cache()`| Rebuild the intellisense and sql object (used for the Find function) caches |
233
+
|`e`|`EditConnections`|`edit_connections()`| Open the [connections file](#connections-json-file) for editing |
234
+
||`BackupDatabase`|`backup_database()`| Inserts an SQL command to back up the currently connected database |
235
+
||`RestoreDatabase`|`restore_database()`| Prompts for a `.bak` file, then inserts an SQL command to restore the database from that file |
0 commit comments