Skip to main content

stores.index

One way to open an index: a Ladybug server, an index file, or a whole build folder.

open_index

The store for target: a grpc:// address, an index file, or a folder that holds one.

stores.ladybug

A GraphStore on LadybugDB, an embedded graph database (docs/DATASTURCTURE.md section 7).

LadybugStore

A GraphStore on LadybugDB. Construct with LadybugStore(path: str \| pathlib.Path \| None = None, *, read_only: bool = False).

stores.ladybug_flight

A store over a Ladybug Flight server: search an index, and (when asked) save into it, from another machine.

LadybugFlightStore

The ConceptSource and a GraphStore, on a Ladybug Flight server. Construct with LadybugFlightStore(uri: str, *, read_only: bool = True, headers: dict[str, str] \| None = None, tls_root_certs: bytes \| None = None, timeout_s: float = 30.0, write_timeout_s: float = 300.0, attempts: int = 6).

assert_read_only

Refuse anything but a plain read.

fill

The query with every $name replaced by its literal.

literal

A Cypher literal for a Python value, safe to put inside a query.

transaction_body

The JSON the server’s transaction action takes: the optional revision check, then every step with its parameters.

stores.memory

GraphStore - store the Concept Indexing Graph

InMemoryStore

An in-memory GraphStore: for tests and dry runs.

stores.plan

How a save is PLANNED: the exact list of statements that applies a Contribution, worked out before any is run.

Plan

stores.reads

The READ side of a LadyGraph index on LadybugDB, with no database engine imported.

Edge

A relation whose two ends both exist, as the store keeps it for graph queries.

SaveRecord

One committed save. A save that failed leaves no record, because it left nothing in the database.

StoreError

The store cannot do what was asked.

StoreLockedError

Another process has this database open.