MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / postgres_configs

Method postgres_configs

src/pglite/server.rs:250–259  ·  view source on GitHub ↗

Set multiple PostgreSQL startup GUCs for the embedded backend used by this server.

(mut self, settings: impl IntoIterator<Item = (K, V)>)

Source from the content-addressed store, hash-verified

248 /// Set multiple PostgreSQL startup GUCs for the embedded backend used by
249 /// this server.
250 pub fn postgres_configs<K, V>(mut self, settings: impl IntoIterator<Item = (K, V)>) -> Self
251 where
252 K: Into<String>,
253 V: Into<String>,
254 {
255 for (name, value) in settings {
256 self.postgres_config.insert(name, value);
257 }
258 self
259 }
260
261 /// Default user encoded in [`PgliteServer::database_url`].
262 pub fn username(mut self, username: impl Into<String>) -> Self {

Callers 1

mainFunction · 0.45

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected