pub struct SqlInterfaceConfig {Show 17 fields
pub db_user: String,
pub db_password: String,
pub db_host: String,
pub db_port: u16,
pub db_name: String,
pub db_tables: Vec<String>,
pub db_min_wait_timeout: u64,
pub db_ping_interval: u64,
pub max_rows_balling_set_values: u64,
pub max_rows_feed_pattern: u64,
pub max_rows_feed_schedule: u64,
pub max_rows_heating_stats: u64,
pub max_rows_schedule: u64,
pub max_rows_data: u64,
pub max_rows_refill: u64,
pub max_rows_balling_dosing_log: u64,
pub max_rows_feed_log: u64,
}Expand description
This struct holds the configuration data for the SQL interface. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§db_user: Stringdatabase user
db_password: Stringdatabase password
db_host: Stringhostname of the database
db_port: u16port name of the database
db_name: Stringdatabase name
db_tables: Vec<String>array of required tables
db_min_wait_timeout: u64minimum wait timout - application checks server variable before execution
db_ping_interval: u64the database-ping interval in seconds
max_rows_balling_set_values: u64maximum allowed rows for balling set value table
max_rows_feed_pattern: u64maximum allowed rows for feed pattern table
max_rows_feed_schedule: u64maximum allowed rows for feed schedule table
max_rows_heating_stats: u64maximum allowed rows for heating stats table
max_rows_schedule: u64maximum allowed rows for schedule table
max_rows_data: u64maximum allowed rows for data table
max_rows_refill: u64maximum allowed rows for refill log
max_rows_balling_dosing_log: u64maximum allowed rows for Balling dosing log
max_rows_feed_log: u64maximum allowed rows for Feed log
Trait Implementations§
Source§impl Clone for SqlInterfaceConfig
impl Clone for SqlInterfaceConfig
Source§fn clone(&self) -> SqlInterfaceConfig
fn clone(&self) -> SqlInterfaceConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more