sqlx-core 0.2.6

Core of SQLx, the rust SQL toolkit. Not intended to be used directly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::error::DatabaseError;
use crate::mysql::protocol::ErrPacket;

pub struct MySqlError(pub(super) ErrPacket);

impl DatabaseError for MySqlError {
    fn message(&self) -> &str {
        &*self.0.error_message
    }
}

impl_fmt_error!(MySqlError);