Skip to content

eventhub_sink

sqllocks_spindle.streaming.sinks.eventhub_sink

Azure Event Hub streaming sink.

Requires the streaming extra::

pip install sqllocks-spindle[streaming]

Classes

EventHubSink

Bases: StreamWriter

Send events to Azure Event Hub.

Requires azure-eventhub::

pip install sqllocks-spindle[streaming]

Parameters:

Name Type Description Default
connection_string str

Event Hub namespace connection string.

required
eventhub_name str | None

Name of the Event Hub. Can also be embedded in the connection string.

None
partition_key_column str | None

Optional column name to use as the Event Hub partition key (ensures ordered delivery per entity).

None