[][src]Struct diesel::prelude::PgConnection

pub struct PgConnection { /* fields omitted */ }

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

Methods

impl PgConnection[src]

pub fn build_transaction(&self) -> TransactionBuilder[src]

Build a transaction, specifying additional details such as isolation level

See TransactionBuilder for more examples.

conn.build_transaction()
    .read_only()
    .serializable()
    .deferrable()
    .run(|| Ok(()))

Trait Implementations

impl SimpleConnection for PgConnection[src]

impl Connection for PgConnection[src]

type Backend = Pg

The backend this type connects to

type TransactionManager = AnsiTransactionManager

impl<Changes, Output> UpdateAndFetchResults<Changes, Output> for PgConnection where
    Changes: Copy + AsChangeset<Target = <Changes as HasTable>::Table> + IntoUpdateTarget,
    Update<Changes, Changes>: LoadQuery<PgConnection, Output>, 
[src]

impl Send for PgConnection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> IntoSql for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]