MCPcopy Create free account
hub / github.com/erans/pgsqlite / load

Method load

src/config.rs:165–175  ·  view source on GitHub ↗

Get a configuration instance with all values resolved from CLI args and environment variables

()

Source from the content-addressed store, hash-verified

163impl Config {
164 /// Get a configuration instance with all values resolved from CLI args and environment variables
165 pub fn load() -> Self {
166 let config = Config::parse();
167
168 // Validate SSL configuration
169 if config.ssl && config.no_tcp {
170 eprintln!("Error: SSL cannot be enabled when TCP is disabled (Unix sockets don't support SSL)");
171 std::process::exit(1);
172 }
173
174 config
175 }
176
177 /// Get the cache metrics interval as Duration
178 pub fn cache_metrics_interval_duration(&self) -> std::time::Duration {

Callers 15

statsMethod · 0.80
is_expiredMethod · 0.80
is_expired_nanosMethod · 0.80
check_and_incrementMethod · 0.80
get_request_countMethod · 0.80
get_stateMethod · 0.80
record_failureMethod · 0.80
record_successMethod · 0.80
check_circuit_breakerMethod · 0.80
maybe_cleanupMethod · 0.80
check_memory_pressureMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_array_with_nullsFunction · 0.64