Skip to main content

Snowflake

17 commands. Toolkit id ooa.snowflake.

CommandWhat it does
Cancel statementStop a statement that is still running.
ConnectKeep the address and sign-in under a session for the steps after it, so they need not repeat them (G6).
Delete rows by keyDelete the rows of a table whose key column has one of the values given; the values are sent apart from the SQL (G6).
DisconnectForget the open Snowflake session; later steps then need their own address and sign-in (G6).
Export results to fileRun one SQL statement and write all of its rows to a file (CSV, tab-separated, JSON lines or Parquet), optionally compressed, without holding them all in memory.
Get statement resultsRead the rows of a finished statement into a data table, page by page.
Get statement statusCheck whether a statement that was left running has finished, failed or is still going.
Insert rows from data tableAdd every row of a data table to a Snowflake table. Columns are matched by name.
List columnsReturn the columns of a table with their data types.
List databasesReturn the databases the role can see.
List schemasReturn the schemas in a database.
List tablesReturn the tables in a schema.
List warehousesReturn the warehouses the role can use, with their size and state.
Load file into tableLoad a CSV or Parquet file into a table: a file on this machine is first put on the table's stage or a named stage, a file already on a stage is used as it is; then Snowflake copies it in (G6).
Run SQL statementRun one SQL statement and return its rows as a data table. Use ? in the SQL for values passed in bindings.
Run stored procedureCall a stored procedure with values for its arguments, sent apart from the SQL, and return what it gives back (G6).
Update rows by keySet columns to new values in the rows of a table whose key column has one of the values given; the values are sent apart from the SQL (G6).