fn option_string<T: AstInfo>(value: &WithOptionValue<T>) -> Option<String>Expand description
Extracts the string form of a WithOptionValue, matching how the planner
coerces option values. The blanket TryFromValue<WithOptionValue<T>> impl in
src/sql/src/plan/with_options.rs accepts a quoted string, a bare identifier,
and a 1-part unresolved item name, all yielding a string. Any other variant
yields None.
AstDisplay does not re-quote bare identifiers or 1-part names, so those
forms persist unquoted in create_sql. Matching only Value::String here
would miss them and silently fall back to a default, so the catalog-raw
parsers below route their string options through this helper.