1. A computer implemented method to generate native access plan source code, the method comprising: receiving a database query; retrieving a query execution plan, wherein the query execution plan comprises operators including a parent operator and one or more descendent operators, corresponding to the database query; determining whether the parent operator and the one or more descendent operators include at least one loop; when both the parent operator and the one or more descendent operators include loops, defining consume points for the loops, wherein the consume points identify a source code point inside an operator in the query execution plan to which source code of another operator in the query execution plan is plugged in to form compact source code; and generating the native access plan source code by merging the parent operator and the one or more descendent operators based on types of the consume points of the defined consume points, wherein merging the parent operator and the one or more descendent operators comprises converting the consume points based on a relationship between the parent operator and the one or more descendent operators.