ReadonlyoperationUnique identifier for this operation (UUID v4).
Use for correlation in logs and traces.
ReadonlystartTimestamp when operation started (ms since epoch).
ReadonlyadapterAdapter kind (e.g., 'better-sqlite3', 'indexeddb', 'postgres').
OptionalmetadataCustom metadata attached to this operation.
Hooks can read and modify this to pass data between hooks or to the calling code.
ReadonlyoperationOperation type (transaction only).
OptionaloperationNumber of operations in this transaction (after completion).
OptionaloutcomeWhether transaction was committed or rolled back.
Context for transaction operations.
Example