Skip to main content

map_instance_row

Function map_instance_row 

Source
pub(super) fn map_instance_row(row: &Row<'_>) -> Result<AgentInstance>
Expand description

Project a non-template db_agents row (selected with INSTANCE_COLUMNS) into the AgentInstance shape: the row’s id is both id and definition_id, last_block_id is block_id, chains are pre-collapsed so parent_instance_id is empty, and a row that never recorded a launch reports created_at as started_at.