Crate elephantry[][src]

SQL typeRust typeFeature
biginti64
bitu8bit
bit varyingbit_vec::BitVecbit
booleanbool
boxelephantry::Boxgeo
byteaelephantry::Bytea
charchar
varcharString
cidripnetwork::IpNetworknet
circleelephantry::Circlegeo
datechrono::NaiveDatedate
double precision/float8f64
hstoreelephantry::Hstore
inetstd::net::IpAddrnet
integeri32
json/jsonbserde_json::Valuejson
lineelephantry::Linegeo
lsegelephantry::Segmentgeo
null()
macaddrmacaddr::MacAddr6net
macaddr8macaddr::MacAddr8net
moneyf32
numericbigdecimal::BigDecimalnumeric
pathelephantry::Pathgeo
pointelephantry::Pointgeo
polygonelephantry::Polygongeo
real/float4f32
recordtuple
smallinti16
textString
timeelephantry::Timetime
timetzelephantry::TimeTztime
timestampchrono::NaiveDateTimedate
timestamptzchrono::DateTimedate
uuiduuid::Uuiduuid
xmlxmltree::Elementxml

Re-exports

pub use transaction::Transaction;

Modules

builder
inspect

database inspection module.

pq

libpq abstraction layer.

transaction

Macros

pk

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

values

Likes pk macro but for value argument, including update_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.

Where

This struct represents a WHERE clause of a SQL statement. It deals with AND & OR operator you can add using handy methods. This allows you to build queries dynamically.

Enums

ChannelBinding
Error
GssEncMode
SslMode
TargetSessionAttrs

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

PingStatus

Result type of ping function.

Result

Derive Macros

Composite

Impl Composite trait.

Entity

Impl Entity trait.

Enum

Impl Enum trait.