(
&self,
has_primary_keys: bool,
)
| 88 | } |
| 89 | |
| 90 | fn validated_mode( |
| 91 | &self, |
| 92 | has_primary_keys: bool, |
| 93 | ) -> std::result::Result<Option<PartialUpdateMode>, Vec<String>> { |
| 94 | if !has_primary_keys || !self.is_enabled() { |
| 95 | return Ok(None); |
| 96 | } |
| 97 | |
| 98 | let unsupported_options = self.unsupported_option_keys(); |
| 99 | if !unsupported_options.is_empty() { |
| 100 | return Err(unsupported_options); |
| 101 | } |
| 102 | |
| 103 | Ok(Some(PartialUpdateMode::Basic)) |
| 104 | } |
| 105 | |
| 106 | fn unsupported_option_keys(&self) -> Vec<String> { |
| 107 | let mut keys: Vec<String> = self |
no test coverage detected