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

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

Modules

ops

Represents the output of numeric operators in SQL

Structs

Array

The Array SQL type.

BigInt

The big integer SQL type.

Binary

The binary SQL type.

Bool

The boolean SQL type.

Cidr

The CIDR SQL type. This type can only be used with feature = "network-address"

Date

The date SQL type.

Double

The double precision float SQL type.

Float

The float SQL type.

Inet

The INET SQL type. This type can only be used with feature = "network-address"

Integer

The integer SQL type.

Interval

The interval SQL type.

Json

The JSON SQL type. This type can only be used with feature = "serde_json"

Jsonb

The jsonb SQL type. This type can only be used with feature = "serde_json"

MacAddr

The MACADDR SQL type. This type can only be used with feature = "network-address"

Money

The PostgreSQL Money type.

Nullable

The nullable SQL type.

Numeric

The arbitrary precision numeric SQL type.

Oid

The OID SQL type. This is a PostgreSQL specific type.

Range

The Range SQL type.

Record

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

SmallInt

The small integer SQL type.

Text

The text SQL type.

Time

The time SQL type.

Timestamp

The timestamp SQL type.

Timestamptz

The "timestamp with time zone" SQL type, which PostgreSQL abbreviates to timestamptz.

TinyInt

The tiny integer SQL type.

Uuid

The UUID SQL type. This type can only be used with feature = "uuid"

Traits

Foldable

Represents SQL types which can be used with SUM and AVG

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

TypeMetadata

Information about how a backend stores metadata about given SQL types

Type Definitions

BigSerial

Alias for BigInt

Decimal

Alias for Numeric

Serial

Alias for Integer

SmallSerial

Alias for SmallInt

VarChar

The SQL VARCHAR type