[][src]Struct ackorelic::nr_connection::NRConnection

pub struct NRConnection {
    pub conn: PgConnection,
}

Fields

conn: PgConnection

Methods

impl NRConnection[src]

Trait Implementations

impl Connection for NRConnection[src]

type Backend = Pg

The backend this type connects to

type TransactionManager = AnsiTransactionManager

fn transaction<T, E, F>(&self, f: F) -> Result<T, E> where
    E: From<Error>,
    F: FnOnce() -> Result<T, E>, 
[src]

Executes the given function inside of a database transaction Read more

fn begin_test_transaction(&self) -> Result<(), Error>[src]

Creates a transaction that will never be committed. This is useful for tests. Panics if called while inside of a transaction. Read more

fn test_transaction<T, E, F>(&self, f: F) -> T where
    E: Debug,
    F: FnOnce() -> Result<T, E>, 
[src]

Executes the given function inside a transaction, but does not commit it. Panics if the given function returns an error. Read more

impl SimpleConnection for NRConnection[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> IntoSql for T[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more