Function mysql_common::named_params::parse_named_params
source · pub fn parse_named_params(
query: &[u8]
) -> Result<(Option<Vec<Vec<u8>>>, Cow<'_, [u8]>), MixedParamsError>
Expand description
Returns pair of:
- names of named parameters (if any) in order of appearance in
query
. Same name may appear multiple times if named parameter used more than once. - query string to pass to MySql (named parameters replaced with
?
).