Class PostgresAuditRepository
java.lang.Object
com.iantapply.orchestra.adapter.postgres.PostgresAuditRepository
- All Implemented Interfaces:
AuditRepository
PostgreSQL-backed audit repository.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(AuditEntry entry) Persists an audit entry.recent(int limit) Returns the most recent entries, newest first.
-
Constructor Details
-
PostgresAuditRepository
Creates an audit repository.- Parameters:
dataSource- database connection pool
-
-
Method Details
-
append
Description copied from interface:AuditRepositoryPersists an audit entry.- Specified by:
appendin interfaceAuditRepository- Parameters:
entry- entry to persist
-
recent
Description copied from interface:AuditRepositoryReturns the most recent entries, newest first.- Specified by:
recentin interfaceAuditRepository- Parameters:
limit- maximum number of entries- Returns:
- immutable or independently mutable result list
-