Skip to main content

comparable

Function comparable 

Source
fn comparable(option: &ClusterOption<Raw>) -> WithOptionValue<Raw>
Expand description

An option’s value reduced to a form the two sides of the diff can be compared by.

Each reduction mirrors a normalization the server performs before it records the option, so a definition that spells a value differently from SHOW CREATE CLUSTER still compares equal. An option written without a value carries its implied value, which for every cluster option that permits the spelling is true. Intervals are canonicalized by CanonicalIntervals. A zero introspection interval turns introspection off, which the server records as the absence of an interval and renders as NULL.

Comparison only. An option that needs setting is emitted as the definition wrote it.