Skip to main content

node_string_value

Function node_string_value 

Source
pub fn node_string_value(node: &Node) -> Option<String>
Expand description

Extract the string value of a bare String Node.

Returns Some(sval) when node is a NodeEnum::String, otherwise None. Used where pg_query encodes a list element (publication name, column name) directly as a String node rather than wrapping it in a DefElem.