kbc remote table unload [table] [flags]
-H, --storage-api-host <string>
connection.keboola.com
--changed-since <string>
Date may be written in any format compatible with strtotime.
--changed-until <string>
Date may be written in any format compatible with strtotime.
--columns <string>
--format <string>
json
and csv
.
The json
format is only supported in projects with the Snowflake backend.
--limit <int>
--order <string>
Accepts a comma-separated list of column+order pairs, such as First_Name,Last_Name=desc
.
If the order for a column is not specified, it defaults to ascending, such as First_Name
in the example above.
--where <string>
Accepts a semicolon-separated list of expressions, each of which specifies a column and a comparison to one or more values, such as First_Name=Ivan,Pavel;Birth_Date>=1990-01-01
--timeout <string>
2m
)
Specified as a sequence of decimal numbers with unit suffixes, e.g., 5m10s
or 1.5h
.
Available units are ms
, s
, m
, and h
.
--async
Unload a table:
➜ kbc remote table unload in.c-gdrive.account
Unloading table, please wait.
Table "in.c-gdrive.account" unloaded to file "734370450".
Unload a table with where filters and ordering:
➜ kbc remote table unload in.c-gdrive.account \
--where Age>23 \
--order Age=asc \
--limit 1000 \
--format csv \
Unloading table, please wait.
Table "in.c-gdrive.account" unloaded to file "734370450".
Unload a table in the terminal without knowing its ID:
➜ kbc remote table unload
? Table: [Use arrows to move, type to filter]
> in.c-my-bucket.data
in.c-gdrive.account
in.c-facebook-extractor.uses
...
(down arrow pressed)
➜ kbc remote table unload
? Table: [Use arrows to move, type to filter]
in.c-my-bucket.data
> in.c-gdrive.account
in.c-facebook-extractor.uses
...
(enter pressed)
➜ kbc remote table unload
? Table: in.c-gdrive.account
Unloading table, please wait.
Table "in.c-gdrive.account" unloaded to file "734370450".