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

Re-exports important traits and types. Meant to be glob imported when using Diesel.

Structs

PgConnection

The connection string expected by PgConnection::establish should be a PostgreSQL connection string, as documented at https://www.postgresql.org/docs/9.4/static/libpq-connect.html#LIBPQ-CONNSTRING

Enums

ConnectionError

Errors which can occur during Connection::establish

Traits

AppearsOnTable

Indicates that all elements of an expression are valid given a from clause.

BelongingToDsl

Constructs a query that finds record(s) based on directional association with other record(s).

BoolExpressionMethods

Methods present on boolean expressions

BoxableExpression

Helper trait used when boxing expressions.

Column

A column on a database table. Types which implement this trait should have been generated by the table! macro.

Connection

A connection to a database

EscapeExpressionMethods

Adds the escape method to LIKE and NOT LIKE. This is used to specify the escape character for the pattern.

Expression

Represents a typed fragment of SQL.

ExpressionMethods

Methods present on all expressions, except tuples

GroupByDsl

This trait is not yet part of Diesel's public API. It may change in the future without a major version bump.

GroupedBy

The grouped_by function groups records by their parent.

Identifiable

This trait indicates that a struct represents a single row in a database table.

Insertable

Represents that a structure can be used to insert a new row into the database. This is automatically implemented for &[T] and &Vec<T> for inserting more than one record.

IntoSql

Converts a type to its representation for use in Diesel's query builder.

JoinOnDsl

Specify the ON clause for a join statement. This will override any implicit ON clause that would come from joinable!

JoinTo

Indicates that two tables can be joined without an explicit ON clause.

NullableExpressionMethods

Methods present on all expressions

OptionalExtension

See the method documentation.

PgArrayExpressionMethods

PostgreSQL specific methods present on array expressions.

PgExpressionMethods

PostgreSQL specific methods which are present on all expressions.

PgSortExpressionMethods

PostgreSQL expression methods related to sorting.

PgTextExpressionMethods

PostgreSQL specific methods present on text expressions.

PgTimestampExpressionMethods

PostgreSQL specific methods present on timestamp expressions.

QueryDsl

Methods used to construct select statements.

QuerySource

Represents a type which can appear in the FROM clause. Apps should not need to concern themselves with this trait.

Queryable

Trait indicating that a record can be queried from the database.

RunQueryDsl

Methods used to execute queries.

SaveChangesDsl

Sugar for types which implement both AsChangeset and Identifiable

SelectableExpression

Indicates that an expression can be selected from a source.

Table

A SQL database table. Types which implement this trait should have been generated by the table! macro.

TextExpressionMethods

Methods present on text expressions

Type Definitions

ConnectionResult

A specialized result type for establishing connections.

QueryResult

A specialized result type for queries.