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 (query operations only).
SQL statement being executed.
Hooks can modify this to transform queries.
OptionalparametersParameters for parameterized queries.
Hooks can modify this to transform parameters.
OptionalaffectedTables referenced in this query (if detected).
Used for cache invalidation and tracking.
Context for query operations (get, all, exec).
Example