PostgresChangePayload class

Data class that contains the Postgres change event payload.

Constructors

PostgresChangePayload({required String schema, required String table, required DateTime commitTimestamp, required PostgresChangeEvent eventType, required Map<String, dynamic> newRecord, required Map<String, dynamic> oldRecord, required dynamic errors})
const
PostgresChangePayload.fromPayload(Map<String, dynamic> payload)
Creates a PostgresChangePayload instance from the enriched postgres change payload
factory

Properties

commitTimestamp → DateTime
When the change was committed.
final
errors → dynamic
Errors reported by the server for this change, if any.
final
eventType → PostgresChangeEvent
Whether the change was an insert, update, or delete.
final
hashCode → int
The hash code for this object.
no setteroverride
newRecord → Map<String, dynamic>
The row after the change, empty for a delete.
final
oldRecord → Map<String, dynamic>
The row before the change, empty for an insert.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schema → String
The schema the change happened in, for example 'public'.
final
table → String
The table the change happened in.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(covariant PostgresChangePayload other) → bool
The equality operator.
override