-
tables: CREATE TABLE IF NOT EXISTS Node (
id INTEGER PRIMARY KEY,
func_name TEXT,
pos TEXT
)
;
CREATE TABLE IF NOT EXISTS Edge (
caller_id INTEGER REFERENCES Node(id),
callee_id INTEGER REFERENCES Node(id)
); graph table: CREATE PROPERTY GRAPH cg
VERTEX TABLES (Node)
EDGE TABLES (Edge SOURCE KEY (caller_id) REFERENCES Node(id)
DESTINATION KEY (callee_id) REFERENCES Node(id)
); query err:
What's wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
Dtenwolde
Feb 10, 2025
Replies: 1 comment 1 reply
-
Hi there, I think this is given a vague syntax error because Hope this helps :) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Cylkal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
I think this is given a vague syntax error because
Node
(andEdge
) are unreserved keywords and can not be used inside a PGQ match statement. Changing the table names toNodes
andEdges
resolves the problem.Hope this helps :)