Share via


Query.addDataSource Method

Adds a data source to the top level of the query.

Syntax

public QueryBuildDataSource addDataSource(
    TableId table, 
   [str name, 
    UnionType unionType, 
    boolean emptyFieldList])

Run On

Called

Parameters

  • name
    Type: str
    The name of the data source; optional.

Return Value

Type: QueryBuildDataSource Class
The created data source object.

Remarks

A name argument can be specified for documentation purposes, and can be used to fetch the data source by using the dataSourceName method.

See Also

Query Class

QueryBuildDataSource.addDataSource Method

Query.dataSourceName Method