Skip to main content

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;
10
11use crate::mysql_like::query_builder::MysqlLikeQueryBuilder;
12
13#[doc(inline)]
14pub use self::backend::Mysql;
15#[cfg(feature = "mysql")]
16#[doc(inline)]
17pub use self::connection::MysqlConnection;
18#[doc(inline)]
19pub use super::mysql_like::sql_types;
20#[doc(inline)]
21pub use super::mysql_like::{MysqlType, MysqlValue, NumericRepresentation};
22#[doc(inline)]
23pub use crate::mysql_like::data_types;
24
25/// The MySQL query builder
26pub type MysqlQueryBuilder = MysqlLikeQueryBuilder<Mysql>;