r2d2_odbc_api 0.2.0

ODBC support for the r2d2 connection pool Via odbc-api Based on https://github.com/Koka/r2d2-odbc
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug)]
pub enum OdbcError {
    #[error(transparent)]
    IO(#[from] std::io::Error),
    #[error(transparent)]
    OdbcApi(#[from] odbc_api::Error),
    #[error("Lock is poisoned {msg} ")]
    LockError { msg: String },
    #[error("unhandled error")]
    Unknown,
}