ladybug-flight-server lets other machines read an index and save into it. Its source is the ladybug-adbc-rs folder: the upstream project, LadybugDB/ladybug-adbc-rs, plus a ladyGraph patch.
The patch adds a transaction action, bound parameters, read and write tokens, a larger message limit, and read-only plain queries. It is src/ladygraph.rs plus small edits to server.rs, main.rs and Cargo.toml. The folder’s own README.md documents the action and the options.
Reading also works against a stock upstream server. Saving needs the patched one.
Build it
.cargo/config.toml. To compile the engine from source as above, that file must be renamed to .cargo/config.toml.off. To use the Linux and Docker route instead, keep it as config.toml.
Two things to know
- Match the engine version. The server and the
ladybugPython package must be built on the same Ladybug engine version. Each new engine rewrites a file on the first write, and an older engine then refuses it. - The binary is found for you.
tests/flight_server.pylooks atLADYBUG_FLIGHT_SERVER, then yourPATH, then a default path underladybug-adbc-rs/target/release/.tutorial/10_stores/run_db.shusesLADYBUG_FLIGHT_SERVERif it is set. Without a server binary, the Flight tests skip.
Use it
LadybugFlightStore connects to the server. The build, search and benchmark scripts read the login from LADYGRAPH_READ_TOKEN and LADYGRAPH_WRITE_TOKEN. See Environment variables.
Storage
How a save stays safe, and what the tables hold.