exar-db-0.1.0 is not a library.
Exar DB
An event store with streaming support, it uses flat-file based collections.
Installation
Install Cargo
, then run:
cargo install exar-db
Starting the database
Simply run exar-db
.
Configuring the database
The database can be configured using a TOML
configuration file, example below:
= "/path/to/log4rs.toml"
[]
= "~/exar-db/data"
= { = 2, = 10 }
[]
= "Random"
= { = 4, = 5 }
[]
= "127.0.0.1"
= 38580
= "my-username"
= "my-secret"
Then run Exar DB by specifying the config file location: exar-db --config=/path/to/config.toml
.
For more information about the database
and server
configuration sections,
check the documentation about
DatabaseConfig and
ServerConfig.
Logging
Logging can be configured using a log4rs config file in TOML
format, example below:
[]
= "console"
[]
= "[{d(%+)(local)}] [{h({l})}] [{t}] {m}{n}"
[]
= "file"
= "exar-db.log"
[]
= "[{d(%+)(local)}] [{h({l})}] [{t}] {m}{n}"
[]
= "info"
= ["console", "file"]