Expand description
§Getting Started
Add ella
to your Cargo.toml
file:
ella = "0.1.5"
You may also want to install the ella CLI tools.
§Windows
Building ella
on Windows requires the Protobuf compiler to be installed.
You can download a pre-built binary from the Protobuf repo.
§Usage
You can access ella by either starting a new instance or connecting to an existing instance.
Start a new instance by opening or creating a datastore:
let el = ella::open("file:///path/to/db")
.or_create(ella::Config::default())
.and_serve("localhost:50052")?
.await?;
Connect to an existing instance using ella::connect
:
let el = ella::connect("http://localhost:50052").await?;
Re-exports§
pub use table::Table;
Modules§
Macros§
Structs§
Enums§
Functions§
- connect
- Connect to an ella API server at
addr
. - create
- Create a new datastore at
root
. - now
- open
- Open the datastore at
root
, if one exists.