add plumbing for many node results
@@ -434,11 +434,17 @@ fn convert_mutaction_result(result: DatabaseMutactionResult) -> crate::protobuf:
crate::protobuf::prisma::DatabaseMutactionResult { type_: Some(typ) }
}
+ DatabaseMutactionResultType::Many => {
+ let result = crate::protobuf::prisma::ManyNodesResult { count: result.count() as u32 };
+ let typ = database_mutaction_result::Type::Many(result);
+ crate::protobuf::prisma::DatabaseMutactionResult { type_: Some(typ) }
+ }
DatabaseMutactionResultType::Unit => {
let result = crate::protobuf::prisma::Unit {};
let typ = database_mutaction_result::Type::Unit(result);
crate::protobuf::prisma::DatabaseMutactionResult { type_: Some(typ) }
}
+
x => panic!("can't handle result type {:?}", x),
}
}
