tb datasource¶
Manages data sources. The following subcommands are available:
Subcommand | Description |
---|---|
analyze URL_OR_FILE | Analyzes a URL or a file before creating a new data source. |
append DATASOURCE_NAME URL | Appends data to an existing data source from URL, local file or a connector. For example, tb datasource append my_datasource https://my_url.com . |
delete [OPTIONS] DATASOURCE_NAME | Deletes rows from a data source. |
ls [OPTIONS] | Lists data sources. |
replace DATASOURCE_NAME URL | Replaces the data in a data source from a URL, local file or a connector. |
truncate [OPTIONS] DATASOURCE_NAME | Truncates a data source. |
tb datasource delete¶
Deletes a data source. For example, tb datasource delete my_datasource --wait
.
Option | Description |
---|---|
--yes | Does not ask for confirmation. |
--wait | Waits for delete job to finish. |
--dry-run | Runs the command without deleting anything. |
tb datasource ls¶
Lists data sources.
Option | Description |
---|---|
--match TEXT | Retrieves any resource matching the pattern. |
--format [json] | Returns the results in the specified format. |
tb datasource truncate¶
Truncates a data source. For example, tb datasource truncate my_datasource
.
Option | Description |
---|---|
--yes | Does not ask for confirmation. |
--cascade | Truncates the dependent data source attached in cascade to the given data source. |