rbdc-mysql 4.9.3

The Rust SQL Toolkit and ORM Library. An async, pure Rust SQL crate featuring compile-time Dynamic SQL
Documentation
use crate::{result_set::MySqlTypeInfo, value::MySqlValueRef};
use rbdc::Error;

pub mod date;
pub mod datetime;
pub mod decimal;
pub mod decode;
pub mod enums;
pub mod geometry;
pub mod json;
pub mod set;
pub mod time;
pub mod timestamp;
pub mod uuid;
pub mod value;
pub mod year;

pub trait TypeInfo {
    fn type_info(&self) -> MySqlTypeInfo;
}

pub trait Decode {
    fn decode(value: MySqlValueRef<'_>) -> Result<Self, Error>
    where
        Self: Sized;
}

pub trait Encode {
    fn encode(self, buf: &mut Vec<u8>) -> Result<usize, Error>;
}

#[cfg(test)]
mod test {
    #[test]
    fn test_datetime() {}
}