tidb_pool 0.1.0

A Rust crate that creates a MySQL connection pool for TiDB using a TOML configuration file.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::ops::Deref;

#[derive(sqlx::FromRow, Debug)]
#[sqlx(transparent)]
pub struct Count(pub i64);

/// Enable `Deref` coercion `Count`.
impl Deref for Count {
    type Target = i64;
    fn deref(&self) -> &Self::Target { &self.0 }
}