Expand description
The db_agents column lists and row mappers the definition and instance
reads share.
ConstantsΒ§
- AGENT_
DEFINITION_ πSELECT - The
db_agentsSELECT that reads a row in theAgentDefinitionshape β the column ordermap_agent_definition_rowexpects. Shared byagent_def_list(all rows) andagent_row_get(one row). - INSTANCE_
COLUMNS π - The
db_agentscolumns every instance read selects, in the ordermap_instance_rowexpects.
FunctionsΒ§
- map_
agent_ πdefinition_ row - Row mapper for
db_agentsrows projected back into theAgentDefinitionshape. The column order MUST match the SELECT inagent_def_list.parent_template_idmaps toparent_idbecause the consolidated table renamed the field to clarify its semantics (template lineage), but the wire shape kept the old name. - map_
instance_ πrow - Project a non-template
db_agentsrow (selected withINSTANCE_COLUMNS) into theAgentInstanceshape: the rowβs id is bothidanddefinition_id,last_block_idisblock_id, chains are pre-collapsed soparent_instance_idis empty, and a row that never recorded a launch reportscreated_atasstarted_at.