(&self)
| 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 |