Module block_tools::db::use_diesel::types[][src]

👎 Deprecated since 1.1.0:

Use sql_types, serialize, or deserialize instead

Structs

Record

The Record (a.k.a. tuple) SQL type.

Enums

IsNull

Tiny enum to make the return type of ToSql more descriptive

Traits

Foldable

Represents SQL types which can be used with SUM and AVG

FromSql

Deserialize a single field of a given SQL type.

FromSqlRow

Deserialize one or more fields.

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 MAX and MIN

ToSql

Serializes a single value to be sent to the database.

TypeMetadata

Information about how a backend stores metadata about given SQL types

Type Definitions

ArrayDeprecated
BigIntDeprecated
BigSerial

Alias for BigInt

BinaryDeprecated
BoolDeprecated
CidrDeprecated
DateDeprecated
Decimal

Alias for Numeric

DoubleDeprecated
FloatDeprecated
InetDeprecated
IntegerDeprecated
IntervalDeprecated
JsonDeprecated
JsonbDeprecated
MacAddrDeprecated
MoneyDeprecated
NullableDeprecated
NumericDeprecated
OidDeprecated
RangeDeprecated
Serial

Alias for Integer

SmallIntDeprecated
SmallSerial

Alias for SmallInt

TextDeprecated
TimeDeprecated
TimestampDeprecated
TimestamptzDeprecated
TinyIntDeprecated
ToSqlOutputDeprecated
UuidDeprecated
VarChar

The SQL VARCHAR type