waleedahmed0001 commented on issue #966:
URL: https://github.com/apache/age/issues/966#issuecomment-1595810546
You can use the following instructions to load data from the file(csv).
Users can load the graph in two steps:
- Load Vertices in the first step
- Load Edges in the second step
function load_labels_from_file is used to load vertices from the CSV files.
```
load_labels_from_file('<graph name>',
'<label name>',
'<file path>')
```
Function load_edges_from_file can be used to load properties from the CSV
file. Please see the file structure in the following.
```
load_edges_from_file('<graph name>',
'<label name>',
'<file path>');
```
Now for exporting the data, you have to use the pgsql built-in functions. An
example has been mentioned below:
```
COPY ( SELECT * FROM library._ag_label_vertex ) TO '/C/Users/Waleed Ahmed
Shahid/.csv' WITH CSV HEADER;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]