1110
func mutableStateFromRow(
1111
result map[string]any,
1113
>
eiBytes, ok := result["execution"].([]byte)
1114
>
if !ok {
1115
return nil, newPersistedTypeMismatchError("execution", "", eiBytes, result)
1116
}
1117
1119
>
if !ok {
1120
return nil, newPersistedTypeMismatchError("execution_encoding", "", eiEncoding, result)
1121
}
1122
1124
>
if !ok {
1125
return nil, newPersistedTypeMismatchError("next_event_id", "", nextEventID, result)
1126
}
1127
1129
>
if err != nil {
1130
return nil, err
1131
}
1132
1134
>
ExecutionInfo: p.NewDataBlob(eiBytes, eiEncoding),
1135
>
ExecutionState: protoState,
1136
>
NextEventID: nextEventID,
1137
>
}
1138
>
return mutableState, nil
1139
}
1140
1141
func executionStateBlobFromRow(
1142
result map[string]any,
1144
>
state, ok := result["execution_state"].([]byte)
1145
>
if !ok {
1146
return nil, newPersistedTypeMismatchError("execution_state", "", state, result)
1147
}
1148
1150
>
if !ok {
1151
return nil, newPersistedTypeMismatchError("execution_state_encoding", "", stateEncoding, result)
1152
}
1153
1155
}