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
use diesel::{result::Error, ConnectionError};

use crate::sync::backend::error::Error as BackendError;

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

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