diesel/mysql/
mod.rs

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