Skip to main content

parse

Function parse 

Source
pub fn parse(connect_string: &str) -> Result<Option<Descriptor>>
Expand description

Parses a connect string into a Descriptor.

Accepts a TNS connect descriptor (when the first non-space character is () or an EZConnect / EZConnect-Plus string otherwise. Returns ProtocolError::InvalidConnectDescriptor with offset/context diagnostics on malformed input, or Ok(None) when the string is neither (i.e. it is a tnsnames.ora alias to be resolved separately).