pliantdb-server 0.1.0-dev.3

Database server for PliantDb.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Configuration options for [`Server`](crate::Server)
pub struct Configuration {
    /// Number of simultaneous requests to be processed. Default value is 16.
    pub request_workers: usize,
    /// Configuration options for individual databases.
    pub storage: pliantdb_local::config::Configuration,
}

impl Default for Configuration {
    fn default() -> Self {
        Self {
            // TODO this was arbitrarily picked, it probably should be higher,
            // but it also should probably be based on the cpu's capabilities
            request_workers: 16,
            storage: pliantdb_local::config::Configuration::default(),
        }
    }
}