[−][src]Module diesel::sql_types
Types which represent a SQL data type.
The structs in this module are only used as markers to represent a SQL type. They should never be used in your structs. If you'd like to know the rust types which can be used for a given SQL type, see the documentation for that SQL type. Additional types may be provided by other crates.
To see which SQL type can be used with a given Rust type,
see the "Implementors" section of FromSql.
Any backend specific types are re-exported through this module
Re-exports
pub use mysql::types::*; |
Modules
| ops | Represents the output of numeric operators in SQL |
Structs
| BigInt | The big integer SQL type. |
| Binary | The binary SQL type. |
| Bool | The boolean SQL type. |
| Date | The date SQL type. |
| Double | The double precision float SQL type. |
| Float | The float SQL type. |
| Integer | The integer SQL type. |
| Interval | The interval SQL type. |
| Nullable | The nullable SQL type. |
| Numeric | The arbitrary precision numeric SQL type. |
| SmallInt | The small integer SQL type. |
| Text | The text SQL type. |
| Time | The time SQL type. |
| Timestamp | The timestamp SQL type. |
| TinyInt | The tiny integer SQL type. |
Traits
| Foldable | Represents SQL types which can be used with |
| HasSqlType | Indicates that a SQL type exists for a backend. |
| IntoNullable | Converts a type which may or may not be nullable into its nullable representation. |
| NotNull | A marker trait indicating that a SQL type is not null. |
| SingleValue | A marker trait indicating that a SQL type represents a single value, as opposed to a list of values. |
| SqlOrd | Marker trait for types which can be used with |
| TypeMetadata | Information about how a backend stores metadata about given SQL types |
Type Definitions
| Decimal | Alias for |
| VarChar | The SQL |