FalkorDBLite backend
pylpg.backend.falkordblite
FalkorDBLite embedded backend, no server required.
Classes:
| Name | Description |
|---|---|
FalkorDBLiteBackend |
Embedded FalkorDB backend using FalkorDBLite. |
FalkorDBLiteBackend
Bases: FalkorDBBackend
Embedded FalkorDB backend using FalkorDBLite.
Runs FalkorDB as a local subprocess with file-based persistence.
No external server required. Requires the falkordblite extra.
Methods:
| Name | Description |
|---|---|
deserialize_node |
Return a node record as a dict of its properties. |
deserialize_relationship |
Return a relationship record as a dict of its properties. |
result_set_limit |
Maximum number of rows a single query may return. |
traverse_batch |
Traverse from many source nodes at once. |
Source code in src/pylpg/backend/falkordblite.py
deserialize_node
Return a node record as a dict of its properties.
The dict also carries _labels and _database_id.
deserialize_relationship
Return a relationship record as a dict of its properties.
The dict also carries _database_id, _start_id and _end_id.
The record must come from a matched pattern, not from a path.
Source code in src/pylpg/backend/falkordb.py
result_set_limit
Maximum number of rows a single query may return.
Returns None when the backend imposes no limit. Backends that
silently truncate oversized result sets (FalkorDB caps at
RESULTSET_SIZE, 10000 by default) must report their limit here
so traverse_batch can split batches instead of losing rows.
Source code in src/pylpg/backend/falkordb.py
traverse_batch
traverse_batch(source_ids: list[Any], relationship_type: str, direction: Direction) -> list[dict[str, Any]]
Traverse from many source nodes at once.
Splits the batch and retries whenever a result set comes back at the backend's row limit, since such a result set may have been silently truncated.