Skip to main content
Version: 1.9.1

publisher

def publisher(
source: AzureSource | LocalFileSource | MariaDBSource | MySQLSource | OracleSource | PostgresSource | S3Source | SourcePlugin,
tables: TableOutput | str | List[str],
name: str = None,
trigger_by: PublisherTriggerBySpec = None,
on_tables: OnTablesSpec = None,
) -> callable

Categories: publisher

Decorator to define a function to publish data to Tabsdata.

Parameters

parameter
source

Where to obtain the data that will be provided as an input to the function.

parameter
tables

Where to store the output of the function.

parameter
name

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

parameter
trigger_by

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

parameter
on_tablesOnTablesSpec, optional

Actions to perform on output tables after executing the function. Can be a single action or a list of them. Defaults to None.

Returns

callable: The function converted to a Tabsdata Function.