(var: VarDefinition)
| 255 | |
| 256 | impl SessionVar { |
| 257 | pub const fn new(var: VarDefinition) -> Self { |
| 258 | SessionVar { |
| 259 | definition: var, |
| 260 | default_value: None, |
| 261 | local_value: None, |
| 262 | staged_value: None, |
| 263 | session_value: None, |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | /// Checks if the provided [`VarInput`] is valid for the current session variable, returning |
| 268 | /// the formatted output if it's valid. |
nothing calls this directly
no test coverage detected