GraphsClientSync
GraphsClientSync(gateway: GraphsGatewaySync, *, config: "Config | None" = None)Synchronous graphs client (public API for connect_sync()).
See GraphsClient for full
semantics; methods here mirror that API but return synchronously.
Methods
Section titled “Methods”.close()
Section titled “.close()”GraphsClientSync.close() -> NoneClose the client (no-op).
Gateways do not own shared transports; the root platform client is responsible for closing transports/sessions.
Returns:
None- Always returnsNone.
.list()
Section titled “.list()”GraphsClientSync.list() -> list[Graph]List all graphs visible to the caller.
Returns:
list[Graph] - The graphs the server returns, sorted by name.
.get()
Section titled “.get()”GraphsClientSync.get(name: str) -> Graph | NoneGet a graph by name, returning None if it does not exist.
Returns:
Graph|None- The graph, orNoneif not found.
.create()
Section titled “.create()”GraphsClientSync.create(name: str) -> NoneCreate a new (empty) graph.
Args: name: The graph name to create.
Returns:
None- Always returnsNone.
.clone()
Section titled “.clone()”GraphsClientSync.clone(source: str, target: str, *, force: bool = False) -> NoneClone source to a new graph target.
Args:
source: Existing graph to clone from.
target: New graph to create.
force: When True, delete an existing target before cloning.
Returns:
None- Always returnsNone.
.delete()
Section titled “.delete()”GraphsClientSync.delete(name: str, *, force: bool = False, language: str = "rel") -> NoneDelete (or release the index for) a graph.
Args:
name: The graph to delete.
force: Bypass model.reuse_model and force a full delete.
language: Language hint forwarded only on index-release deletes
("rel" or "lqp"). Ignored when use_graph_index is
disabled — the plain database-delete endpoint does not accept
a language hint. Matches v0 delete_graph(..., language=...)
behavior.
Returns:
None- Always returnsNone. Missing graphs are treated as a no-op.