pub struct SqliteActivityLogRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqliteActivityLogRepository
impl SqliteActivityLogRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl ActivityLogRepository for SqliteActivityLogRepository
impl ActivityLogRepository for SqliteActivityLogRepository
Source§fn record(&self, input: RecordActivity) -> Result<ActivityLogEntry>
fn record(&self, input: RecordActivity) -> Result<ActivityLogEntry>
Record a new activity log entry.
Source§fn get(&self, id: ActivityLogId) -> Result<Option<ActivityLogEntry>>
fn get(&self, id: ActivityLogId) -> Result<Option<ActivityLogEntry>>
Get an entry by ID.
Source§fn list(&self, filter: ActivityLogFilter) -> Result<Vec<ActivityLogEntry>>
fn list(&self, filter: ActivityLogFilter) -> Result<Vec<ActivityLogEntry>>
List entries with filter (most recent first).
Source§fn history_for_subject(
&self,
subject_type: &str,
subject_id: Uuid,
) -> Result<Vec<ActivityLogEntry>>
fn history_for_subject( &self, subject_type: &str, subject_id: Uuid, ) -> Result<Vec<ActivityLogEntry>>
List the full (unpaginated) history for a single subject, most recent
first. Used for timelines and AI-over-history summaries.
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteActivityLogRepository
impl !UnwindSafe for SqliteActivityLogRepository
impl Freeze for SqliteActivityLogRepository
impl Send for SqliteActivityLogRepository
impl Sync for SqliteActivityLogRepository
impl Unpin for SqliteActivityLogRepository
impl UnsafeUnpin for SqliteActivityLogRepository
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more