Skip to main content

list

Function list 

Source
pub fn list(
    conn: &Connection,
    namespace: &str,
    memory_type: Option<&str>,
    limit: usize,
    offset: usize,
) -> Result<Vec<MemoryRow>, AppError>
Expand description

Lists live memories in a namespace ordered by updated_at descending.

§Arguments

  • memory_type — optional filter on the type column.
  • limit / offset — standard pagination controls in rows.

§Errors

Returns Err(AppError::Database) on any rusqlite failure.