Returns the underlying value without quotes.
(self)
| 4707 | impl SetVariableValue { |
| 4708 | /// Returns the underlying value without quotes. |
| 4709 | pub fn into_unquoted_value(self) -> String { |
| 4710 | match self { |
| 4711 | // `lit.to_string` will quote a `Value::String`, so get the unquoted |
| 4712 | // version. |
| 4713 | SetVariableValue::Literal(Value::String(s)) => s, |
| 4714 | SetVariableValue::Literal(lit) => lit.to_string(), |
| 4715 | SetVariableValue::Ident(ident) => ident.into_string(), |
| 4716 | } |
| 4717 | } |
| 4718 | } |
| 4719 | |
| 4720 | /// SQL assignment `foo = expr` as used in SQLUpdate |
no test coverage detected