[][src]Crate elephantry

Modules

inspect

database inspection module.

pq

libpq abstraction layer.

Macros

pk

Easily create pk argument for where clause, including find_by_pk function.

Structs

Array

Rust type for array.

Async

This struct is created by the Connection::async method.

Bytea

Rust type for bytea.

Config

Connection configuration.

Connection

A connection to a database.

Hstore

Rust type for hstore.

Pager

This struct is created by the Connection::paginate_find_where method.

Pool

Connections pool.

Projection

Define the content of SELECT or RETURNING (projection) statements.

Rows

Represent a rows of result.

Tuple

Represent a set of values, a row of results.

Enums

Error

Traits

Composite

Trait to convert rust struct to composite type.

Entity

Trait to translate SQL row to struct and vice versa.

Enum

Trait to convert rust enum to postgresql enum.

FromSql

Trait to allow a rust type to be translated form a SQL value.

Model

Impl this trait to create a link between an entity and a structure.

Structure

Trait to reflect relation structure.

ToSql

Trait to allow a rust type to be translated to a SQL value.

Type Definitions

Result

Derive Macros

Composite

Impl Composite trait.

Entity

Impl Entity trait.

Enum

Impl Enum trait.