Skip to main content
Version: 0.9.5

publisher

def publisher(
source: AzureSource | LocalFileSource | MariaDBSource | MySQLSource | OracleSource | PostgresSource | S3Source | SourcePlugin,
tables: TableOutput | str | List[str],
name: str = None,
trigger_by: str | List[str] | NoneType = None,
) -> <built-in function callable>

Categories: publisher

Decorator to set the data and destination parameters of a function and convert it to a TabsdataFunction.

Parameters

parameter
tablesTableOutput | str | List[str]

Where to store the output of the function.

parameter
namestr, optional

The name with which the function will be registered. If not provided, the current function name will be used.

parameter
trigger_bystr | list[str] | None, optional

The trigger that will cause the function to execute. It can be a table in the system, a list of tables, or None (in which case it must be triggered manually).

Returns

callable: The function converted to a TabsdataFunction.