feat: independent property graphs and graph writes from the client

A property graph definition now carries its mode. Independent graphs are defined by node and edge types with Arrow schemas and take rows through insert_into_property_graph; materialized view graphs are defined over tables as before and brought up to them with refresh_property_graph. rollback_property_graph returns either to its previous commit, and descriptions report the mode and the current and previous commits.
This commit is contained in:
Jack Ye
2026-09-26 17:19:41 -07:00
parent b961b1695c
commit 0b1e274e05
14 changed files with 971 additions and 104 deletions
+13 -2
View File
@@ -204,12 +204,23 @@ listing a storage directory.
## Property Graphs
A property graph reads tables as the nodes and edges of a graph. Manage one
with [create_property_graph][lancedb.DBConnection.create_property_graph],
A property graph is read as nodes and edges, in one of two modes. An
independent graph holds its own rows: define it with node and edge types, and
write it with
[insert_into_property_graph][lancedb.DBConnection.insert_into_property_graph].
A materialized view graph reads tables: define it with node and edge tables,
and bring it up to them with
[refresh_property_graph][lancedb.DBConnection.refresh_property_graph]. Manage
either with [create_property_graph][lancedb.DBConnection.create_property_graph],
[describe_property_graph][lancedb.DBConnection.describe_property_graph],
[rollback_property_graph][lancedb.DBConnection.rollback_property_graph],
[list_property_graphs][lancedb.DBConnection.list_property_graphs] and
[drop_property_graph][lancedb.DBConnection.drop_property_graph].
::: lancedb.graph.NodeType
::: lancedb.graph.EdgeType
::: lancedb.graph.NodeTable
::: lancedb.graph.EdgeTable