Audit Dao
Data Access Object for audit trail operations.
Provides CRUD operations for audit events and chain state management.
Functions
Link copied to clipboard
Count total events.
Link copied to clipboard
Count events in a time range.
Link copied to clipboard
Delete all events.
Link copied to clipboard
Delete events older than a timestamp.
Link copied to clipboard
Delete all events for a specific user.
Link copied to clipboard
Get all events ordered by timestamp.
Link copied to clipboard
Get chain state.
Link copied to clipboard
Get an event by ID.
Link copied to clipboard
Get distinct event names with counts.
Link copied to clipboard
Get events by name.
Link copied to clipboard
Get all events for a specific user.
Link copied to clipboard
Get events for chain verification in order.
Link copied to clipboard
Get events in a time range, ordered by timestamp.
Link copied to clipboard
Get the most recent event.
Link copied to clipboard
Get the oldest event.
Link copied to clipboard
Insert a new audit event.
Link copied to clipboard
Atomic insert of event and chain state update.
Link copied to clipboard
Insert or update chain state.