Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Datasource.update

Datasource.update({ sourceDataset, sourceWorkflow, sample, version, mappedTables }) → Promise<Datasource>

Changes the datasource's source, its version or sample, or how its tables are mapped to those of a new source. Only the options that are provided are changed.

Parameters:

sourceDataset : Dataset | string, optional A new source dataset.

sourceWorkflow : Workflow | string, optional A new source workflow.

sample : boolean, optional Whether to use the source dataset's sample.

version : Version | string, optional The version of the source dataset to use (e.g., v1_0, or current to always use the latest version).

mappedTables : Array | object, optional When the new source's tables have different names, how the current tables map to them: an array of [sourceTable, destinationTable] pairs (as Tables or names), or an object of names.

Returns: Promise<Datasource>, this datasource.

Was this helpful?