This extension enables you to connect to Snowflake, write and execute sql queries, and view results without leaving VS Code.
This extension provides autocomplete support for database object names, built-in functions, and Snowflake SQL keywords. Database, schema, and table name suggestions will show up as you type your query.
Keywords and object names display first in the list, followed by built-in functions.
Function parameters will be highlighted as you type, and a link to the function documentation is available in the info panel.
With your cursor inside an identifier, right click and select
Accounts & Sessions
Located in the Activity Bar, the Account view lets you authenticate to Snowflake and switch between multiple accounts.
Once logged in, you'll be able to see and change your active database, schema, role, and warehouse.
Located in the Activity Bar, the Object Explorer provides a hierarchical view of your database and application objects:
You can copy the object name to your clipboard by clicking the inline action icon on the right of the highlighted line. Clicking on an object will open up the object details view in the Panel, displaying additional information for each object.
When you expand a stage within the Object Explorer, you will be able to LIST all the files contained within that stage. To GET files, use the available download buttons to download an entire stage, a directory, or a single file. If you are interacting with an internal stage, you can also use the upload button to PUT a single file, multiple files, or an entire directory into the stage.
You can use the inline "Execute" links to execute a given statement.
To execute multiple queries, select the ones you want to run and press CMD/CTRL+Enter. You can also use the "Execute All Statements" button in the upper right corner of the editor window to run all queries in the current file.
Query results will be displayed in the Panel.
When you click on a cell in the results table, the content of that cell will be displayed to the right. If you wish to select multiple cells or entire columns, you can use SHIFT or CMD/CTRL. Additionally, you can select all columns and rows by using the checkbox located in the upper-left corner of the results grid.
Located in the upper-right corner, there are three buttons:
Dragging a column header allows you to rearrange the column order. Right-clicking on a column header will allow you to sort, hide, or freeze that column.
View previous queries executed in the Query History view, located in the Activity Bar. Clicking on a query will bring up its results in the query results view.
Hovering over an item in the Query History view will allow you to copy the query or remove it from your local history.
To clear all queries from history, click the icon in the top right of the Query History title bar.