| 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. |
| 6 |
|
| 7 |
pub(crate) mod backend; |
| 8 |
#[cfg(feature = "mysql")] |
| 9 |
mod connection; |
| 10 |
mod value; |
| 11 |
|
| 12 |
pub(crate) mod query_builder; |
| 13 |
mod types; |
| 14 |
|
| 15 |
pub use self::backend::{Mysql, MysqlType}; |
| 16 |
#[cfg(feature = "mysql")] |
| 17 |
pub use self::connection::MysqlConnection; |
| 18 |
pub use self::query_builder::MysqlQueryBuilder; |
| 19 |
pub use self::value::{MysqlValue, NumericRepresentation}; |
| 20 |
|
| 21 |
/// 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. |
| 25 |
pub mod data_types { |
| 26 |
#[doc(inline)] |
| 27 |
pub use super::types::date_and_time::{MysqlTime, MysqlTimestampType}; |
| 28 |
} |
| 29 |
|
| 30 |
/// MySQL specific sql types |
| 31 |
pub mod sql_types { |
| 32 |
#[doc(inline)] |
| 33 |
pub use super::types::{Datetime, Unsigned}; |
| 34 |
} |