db-pool 0.6.0

A thread-safe database pool for running database-tied integration tests in parallel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::fmt::Debug;

use diesel::{result::Error, ConnectionError};

use crate::r#async::backend::error::Error as BackendError;

impl<B: Debug, P: Debug> From<ConnectionError> for BackendError<B, P, ConnectionError, Error> {
    fn from(value: ConnectionError) -> Self {
        Self::Connection(value)
    }
}

impl<B: Debug, P: Debug> From<Error> for BackendError<B, P, ConnectionError, Error> {
    fn from(value: Error) -> Self {
        Self::Query(value)
    }
}