(
&self,
has_primary_keys: bool,
table_name: &str,
)
| 72 | } |
| 73 | |
| 74 | pub(crate) fn validate_runtime_mode( |
| 75 | &self, |
| 76 | has_primary_keys: bool, |
| 77 | table_name: &str, |
| 78 | ) -> crate::Result<Option<PartialUpdateMode>> { |
| 79 | match self.validated_mode(has_primary_keys) { |
| 80 | Ok(mode) => Ok(mode), |
| 81 | Err(unsupported_options) => Err(crate::Error::Unsupported { |
| 82 | message: format!( |
| 83 | "Table '{table_name}' uses merge-engine=partial-update options not supported by this build: {}", |
| 84 | unsupported_options.join(", ") |
| 85 | ), |
| 86 | }), |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | fn validated_mode( |
| 91 | &self, |
no test coverage detected