type DeltaEvent<TRow, TKey> =
| {
key: TKey;
metadata?: Record<string, unknown>;
type: "enter";
value: TRow;
}
| {
key: TKey;
metadata?: Record<string, unknown>;
type: "exit";
value: TRow;
}
| {
key: TKey;
metadata?: Record<string, unknown>;
previousValue: TRow;
type: "update";
value: TRow;
};Defined in: packages/db/src/query/effect.ts:38
Delta event emitted when a row enters, exits, or updates within a query result
TRow extends object = Record\<`string`, `unknown`\>
TKey extends string | number = string | number
{
key: TKey;
metadata?: Record<string, unknown>;
type: "enter";
value: TRow;
}key: TKey;optional metadata: Record<string, unknown>;type: "enter";value: TRow;Current value for the entering row
{
key: TKey;
metadata?: Record<string, unknown>;
type: "exit";
value: TRow;
}key: TKey;optional metadata: Record<string, unknown>;type: "exit";value: TRow;Current value for the exiting row
{
key: TKey;
metadata?: Record<string, unknown>;
previousValue: TRow;
type: "update";
value: TRow;
}key: TKey;optional metadata: Record<string, unknown>;previousValue: TRow;Previous value before the batch
type: "update";value: TRow;Current value after the update