1//! Provides types and functions related to working with MySQL
2//!
3//! Much of this module is re-exported from database agnostic locations.
4//! However, if you are writing code specifically to extend Diesel on
5//! MySQL, you may need to work with this module directly.
67pub(crate) mod backend;
8#[cfg(feature = "mysql")]
9mod connection;
10mod value;
1112pub(crate) mod query_builder;
13mod types;
1415pub use self::backend::{Mysql, MysqlType};
16#[cfg(feature = "mysql")]
17pub use self::connection::MysqlConnection;
18pub use self::query_builder::MysqlQueryBuilder;
19pub use self::value::{MysqlValue, NumericRepresentation};
2021/// Data structures for MySQL types which have no corresponding Rust type
22///
23/// Most of these types are used to implement `ToSql` and `FromSql` for higher
24/// level types.
25pub mod data_types {
26#[doc(inline)]
27pub use super::types::date_and_time::{MysqlTime, MysqlTimestampType};
28}
2930/// MySQL specific sql types
31pub mod sql_types {
32#[doc(inline)]
33pub use super::types::{Datetime, Unsigned};
34}