deadpool-libsql 0.1.0

Dead simple async pool for libsql
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

/// This error is returned when the connection fails
#[derive(Debug, Error)]
pub enum ConnectionError {
    /// The error was reported by the [libsql::Connection].
    #[error("Libsql returned an error: {0}")]
    Libsql(#[from] libsql::Error),
    /// The test query was executed but the database returned
    /// an unexpected response.
    #[error("Test query failed: {0}")]
    TestQueryFailed(&'static str),
}