Skip to content

Commit 39c1b85

Browse files
committed
Add documentation to the tinyint type
1 parent 78474bf commit 39c1b85

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

diesel/src/mysql/types/mod.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@ use std::error::Error as StdError;
77
use std::io::Write;
88
use types::{self, ToSql, IsNull, FromSql, HasSqlType};
99

10-
10+
/// The tinyint SQL type. This is only available on MySQL.
11+
///
12+
/// ### [`ToSql`](/diesel/types/trait.ToSql.html) impls
13+
///
14+
/// - [`i8`][i8]
15+
///
16+
/// ### [`FromSql`](/diesel/types/trait.FromSql.html) impls
17+
///
18+
/// - [`i8`][i8]
19+
///
20+
/// [i8]: https://doc.rust-lang.org/nightly/std/primitive.i8.html
1121
#[derive(Debug, Clone, Copy, Default)] pub struct Tinyint;
1222

1323
impl ToSql<Tinyint, Mysql> for i8 {

0 commit comments

Comments
 (0)