pub struct TinyInt;
Expand description
The tiny integer SQL type.
This is only available on MySQL.
Keep in mind that diesel print-schema
will see TINYINT(1)
as Bool
,
not TinyInt
.
ToSql
impls
FromSql
impls
Trait Implementations
sourceimpl<'expr> AsExpression<TinyInt> for &'expr i8
impl<'expr> AsExpression<TinyInt> for &'expr i8
type Expression = Bound<TinyInt, &'expr i8>
type Expression = Bound<TinyInt, &'expr i8>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<TinyInt> for &'expr2 &'expr i8
impl<'expr2, 'expr> AsExpression<TinyInt> for &'expr2 &'expr i8
type Expression = Bound<TinyInt, &'expr2 &'expr i8>
type Expression = Bound<TinyInt, &'expr2 &'expr i8>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<TinyInt> for i8
impl AsExpression<TinyInt> for i8
type Expression = Bound<TinyInt, i8>
type Expression = Bound<TinyInt, i8>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl FromSql<TinyInt, Mysql> for i8
Available on crate feature mysql_backend
only.
impl FromSql<TinyInt, Mysql> for i8
Available on crate feature
mysql_backend
only.sourcefn from_sql(value: MysqlValue<'_>) -> Result<Self>
fn from_sql(value: MysqlValue<'_>) -> Result<Self>
See the trait documentation.
sourceimpl HasSqlType<TinyInt> for Mysql
impl HasSqlType<TinyInt> for Mysql
sourceimpl QueryId for TinyInt
impl QueryId for TinyInt
sourceconst HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self
be uniquely identified by its type? Read more
impl Copy for TinyInt
impl SingleValue for TinyInt
Auto Trait Implementations
impl RefUnwindSafe for TinyInt
impl Send for TinyInt
impl Sync for TinyInt
impl Unpin for TinyInt
impl UnwindSafe for TinyInt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoNotNullable for T where
T: SqlType<IsNull = NotNull>,
impl<T> IntoNotNullable for T where
T: SqlType<IsNull = NotNull>,
type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more
sourceimpl<T> IntoNullable for T where
T: SqlType<IsNull = NotNull> + SingleValue,
impl<T> IntoNullable for T where
T: SqlType<IsNull = NotNull> + SingleValue,
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
Convert self
to an expression for Diesel’s query builder. Read more
sourcefn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert &self
to an expression for Diesel’s query builder. Read more