singer_sdk.singerlib.messages.RecordMessage

class singer_sdk.singerlib.messages.RecordMessage[source]

Singer record message.

classmethod from_dict(data)[source]

Create a record message from a dictionary.

This overrides the default conversion logic, since it uses unnecessary deep copying and is very slow.

Parameters:

data (dict[str, Any]) – The dictionary to create the message from.

Returns:

The created message.

Return type:

RecordMessage

__init__(stream, record, version=None, time_extracted=None)[source]
Parameters:
Return type:

None

to_dict()[source]

Return a dictionary representation of the message.

This overrides the default conversion logic, since it uses unnecessary deep copying and is very slow.

Returns:

A dictionary with the defined message fields.

Return type:

dict[str, Any]

record: dict[str, Any][source]

The record data.

stream: str[source]

The stream name.

time_extracted: datetime | None[source]

The time the record was extracted.

version: int | None[source]

The record version.