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

Method validate

src/pglite/config.rs:33–42  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

31 }
32
33 pub(crate) fn validate(&self) -> Result<()> {
34 for (name, value) in &self.settings {
35 validate_guc_name(name)?;
36 ensure!(
37 !value.contains('\0'),
38 "Postgres config value for '{name}' must not contain NUL bytes"
39 );
40 }
41 Ok(())
42 }
43
44 pub(crate) fn iter(&self) -> impl Iterator<Item = (&str, &str)> {
45 self.settings

Callers 8

startMethod · 0.45
dump_sqlMethod · 0.45
add_pglite_argsFunction · 0.45
openMethod · 0.45

Calls 2

validate_guc_nameFunction · 0.85
validate_startup_valueFunction · 0.85