pub struct CrudEntry {
pub client_id: i64,
pub transaction_id: i64,
pub update_type: UpdateType,
pub table: String,
pub id: String,
pub metadata: Option<String>,
pub data: Option<Map<String, Value>>,
pub previous_values: Option<Map<String, Value>>,
}Expand description
A single client-side change.
Fields§
§client_id: i64Auto-incrementing client-side id.
Reset whenever the database is re-created.
transaction_id: i64Auto-incrementing transaction id.
Reset whenever the database is re-created.
update_type: UpdateTypeType of change.
table: StringTable that contained the change.
id: StringID of the changed row.
metadata: Option<String>An optional metadata string attached to this entry at the time the write was made.
For tables where [Table::track_metadata] is enabled, a hidden _metadata column is added to
this table that can be used during updates to attach a hint to the update thas is preserved
here.
data: Option<Map<String, Value>>Data associated with the change.
For PUT, this contains all non-null columns of the row.
For PATCH, this contains the columns that changed.
For DELETE, this is null.
previous_values: Option<Map<String, Value>>Old values before an update.
This is only tracked for tables for which this has been enabled by setting the [Table::track_previous_values].