zero-mysql 0.6.0

A high-performance MySQL client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Non-panicking version of `.unwrap_err()` — returns `Err` if the Result is `Ok`.
macro_rules! check_err {
    ($result:expr) => {
        match $result {
            Err(e) => e,
            Ok(_) => {
                return Err(zero_mysql::error::Error::LibraryBug(
                    zero_mysql::error::eyre!(concat!(
                        "expected Err: `",
                        stringify!($result),
                        "`"
                    )),
                )
                .into());
            }
        }
    };
}