pub fn find_by_name(
conn: &Connection,
namespace: &str,
name: &str,
) -> Result<Option<(i64, i64, i64)>, AppError>Expand description
Finds a live memory by (namespace, name) and returns key metadata.
§Arguments
conn— open SQLite connection configured with the project pragmas.namespace— resolved namespace for the lookup.name— kebab-case memory name.
§Returns
Ok(Some((id, updated_at, max_version))) when the memory exists and is
not soft-deleted, Ok(None) otherwise.
§Errors
Returns Err(AppError::Database) on any rusqlite failure.