You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/custom-query-modules/c/c-api.mdx
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,7 @@ Memgraph in order to use them.
143
143
| enum [mgp_error](#variable-mgp-error)|**[mgp_path_equal](#function-mgp-path-equal)**(struct mgp_path * p1, struct mgp_path * p2, int * result)<br />Result is non-zero if given paths are equal, otherwise 0. |
144
144
| enum [mgp_error](#variable-mgp-error)|**[mgp_result_set_error_msg](#function-mgp-result-set-error-msg)**(struct mgp_result * res, const char * error_msg)<br />Set the error as the result of the procedure. |
145
145
| enum [mgp_error](#variable-mgp-error)|**[mgp_result_new_record](#function-mgp-result-new-record)**(struct mgp_result * res, struct mgp_result_record ** result)<br />Create a new record for results. |
146
+
| enum [mgp_error](#variable-mgp-error)|**[mgp_result_reserve](#function-mgp-result-reserve)**(struct mgp_result * res, size_t n)<br />Reserves memory for `n` result records. |
146
147
| enum [mgp_error](#variable-mgp-error)|**[mgp_result_record_insert](#function-mgp-result-record-insert)**(struct mgp_result_record * record, const char * field_name, struct mgp_value * val)<br />Assign a value to a field in the given record. |
147
148
| void |**[mgp_properties_iterator_destroy](#function-mgp-properties-iterator-destroy)**(struct mgp_properties_iterator * it)<br />Free the memory used by a mgp_properties_iterator. |
148
149
| enum [mgp_error](#variable-mgp-error)|**[mgp_properties_iterator_get](#function-mgp-properties-iterator-get)**(struct mgp_properties_iterator * it, struct [mgp_property](#mgp_property)** result)<br />Get the current property pointed to by the iterator. |
@@ -1659,6 +1660,17 @@ Create a new record for results.
1659
1660
1660
1661
The previously obtained mgp_result_record pointer is no longer valid, and you must not use it. Return MGP_ERROR_UNABLE_TO_ALLOCATE if unable to allocate a mgp_result_record.
0 commit comments