Is there a query to obtain db schema? #4300
Replies: 1 comment
-
Hi @kamalikaray, there are some schema functions that can help with this. Because Kùzu imposes more structure than some of the other graph DBs, this might not be achievable through a single
Same for relationship tables, where it outputs the properties:
As you can see, each query clause provides a different subset of information, and you can run these queries from within Python, collect the query result as a nested object and iterate through the table IDs and/or names to retrieve the information programmatically. Again, because of the structured property graph model within Kùzu, it's difficult to nest tables within other tables and display them in a way that doesn't overwhelm the user. So we went with multiple query clauses this way. Hope that makes sense! |
Beta Was this translation helpful? Give feedback.
-
Hi,
Is there a cypher query to get the db schema? Something similar to this?
call db.schema()
Thanks
Beta Was this translation helpful? Give feedback.
All reactions