magpiedb runs inside your app, like SQLite: there is no server. A store is one folder. Node.js, Python and Rust call the same engine and take the same JSON shapes as the server query API. The import name is magpiedb in every language (the name magpie is taken on PyPI by another project).
Build from source
Build from source
Open a store
Store.open opens the store in the folder, or makes a new one. close commits what is left, waits for merges and frees the folder for another writer. In Node.js and Python, a call after close fails; in Rust, close takes the store. The examples on the next pages use an open store.
Only one process writes
Set options
Options. Times are milliseconds in Node.js and Python, and a Duration in Rust.
In Rust,
durability is Durability::None, Os or Disk, and compression is Compression::Lz4 or Compression::Zstd(level).
How calls run
What each language has
The task pages show every call in all three languages. These parts are not the same:
Method lists: Node.js, Python, Rust.
Write spans
Write, replace and commit spans.
Query from your app
Search text, find traces, add up tokens and cost.
Errors and input rules
What each language raises, and why.