FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mage/cpp/csv_utils_module/csv_utils_module.cpp at main · memgraph/mage · GitHub
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
memgraph
/
mage
Public archive
Notifications
You must be signed in to change notification settings
Fork
35
Star
331
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
mage
/
cpp
/
csv_utils_module
/
csv_utils_module.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (24 loc) · 1.16 KB
Breadcrumbs
mage
/
cpp
/
csv_utils_module
/
csv_utils_module.cpp
Copy path
File metadata and controls
27 lines (24 loc) · 1.16 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
include
<
mg_utils.hpp
>
#
include
<
mgp.hpp
>
#
include
"
algorithm/csv_utils.hpp
"
extern
"
C
"
int
mgp_init_module
(mgp_module *
module
, mgp_memory *memory) {
try
{
mgp::MemoryDispatcherGuard
guard
(memory);
mgp::AddProcedure
(CsvUtils::CreateCsvFile, CsvUtils::
kProcedureCreateCsvFile
, mgp::ProcedureType::Read,
{
mgp::Parameter
(CsvUtils::
kArgumentCreateCsvFile1
, mgp::Type::String),
mgp::Parameter
(CsvUtils::
kArgumentCreateCsvFile2
, mgp::Type::String),
mgp::Parameter
(CsvUtils::
kArgumentCreateCsvFile3
, mgp::Type::Bool,
false
),
},
{
mgp::Return
(CsvUtils::
kArgumentDeleteCsvFile1
, {mgp::Type::String})},
module
, memory);
mgp::AddProcedure
(CsvUtils::DeleteCsvFile, CsvUtils::
kProcedureDeleteCsvFile
, mgp::ProcedureType::Read,
{
mgp::Parameter
(CsvUtils::
kArgumentDeleteCsvFile1
, mgp::Type::String),
},
{},
module
, memory);
}
catch
(
const
std::exception &e) {
return
1
;
}
return
0
;
}
extern
"
C
"
int
mgp_shutdown_module
() {
return
0
; }
Back
|
FazBrowse Home
|
New Git URL