Snowflake
17 commands. Toolkit id ooa.snowflake.
| Command | What it does |
|---|---|
| Cancel statement | Stop a statement that is still running. |
| Connect | Keep the address and sign-in under a session for the steps after it, so they need not repeat them (G6). |
| Delete rows by key | Delete the rows of a table whose key column has one of the values given; the values are sent apart from the SQL (G6). |
| Disconnect | Forget the open Snowflake session; later steps then need their own address and sign-in (G6). |
| Export results to file | Run 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 results | Read the rows of a finished statement into a data table, page by page. |
| Get statement status | Check whether a statement that was left running has finished, failed or is still going. |
| Insert rows from data table | Add every row of a data table to a Snowflake table. Columns are matched by name. |
| List columns | Return the columns of a table with their data types. |
| List databases | Return the databases the role can see. |
| List schemas | Return the schemas in a database. |
| List tables | Return the tables in a schema. |
| List warehouses | Return the warehouses the role can use, with their size and state. |
| Load file into table | Load 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 statement | Run one SQL statement and return its rows as a data table. Use ? in the SQL for values passed in bindings. |
| Run stored procedure | Call a stored procedure with values for its arguments, sent apart from the SQL, and return what it gives back (G6). |
| Update rows by key | Set 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). |