FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

#include "csv_utils.hpp" namespace CsvUtils { void CreateCsvFile(mgp_list *args, mgp_graph *memgraph_graph, mgp_result *result, mgp_memory *memory) { mgp::MemoryDispatcherGuard guard(memory); const auto arguments = mgp::List(args); const auto record_factory = mgp::RecordFactory(result); try { const auto filepath = arguments[0].ValueString(); const auto content = arguments[1].ValueString(); const auto is_append = arguments[2].ValueBool(); std::ofstream fout; fout.open(std::string(filepath), is_append ? std::ofstream::app : std::ofstream::out); fout

Back | FazBrowse Home | New Git URL