tabsdata.publisher

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

Decorator to define a function to publish data to Tabsdata.

Parameters:
  • source – Where to obtain the data that will be provided as an input to the function.

  • tables – Where to store the output of the function.

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

  • trigger_by – 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:

The function converted to a Tabsdata Function.

Return type:

callable