selendym opened a new issue, #289:
URL: https://github.com/apache/age/issues/289

   Hello.
   
   What is the recommended way to create a graph from a table (or from an SQL 
query, in general)?
   
   Say, we have a table `A` with fields `id` and `parent_id`, where the latter 
refers back to the former of some row.
   How would I go about and cast this into an AGE graph easily?
   Ideally, this would be without doing a client-server roundtrip of first 
querying table rows and then creating the corresponding graph vertices and 
edges.
   
   Currently, there seems to be a way to load graphs from CSV files 
(https://age.apache.org/age-manual/master/intro/agload.html), but this doesn't 
really help in this case.
   Also, there seems to be a helper function written in plpython available 
(https://github.com/sorrell/age-compose/blob/master/docker-entrypoint/initdb.d/20-initgraph.sql#L10-L37),
 but this isn't ideal either.
   
   Best regards.
   


-- 
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]

Reply via email to