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

pub struct PgConnection { /* fields omitted */ }

The connection string expected by PgConnection::establish should be a PostgreSQL connection string, as documented at


impl PgConnection

Build a transaction, specifying additional details such as isolation level

See TransactionBuilder for more examples.

    .run(|| Ok(()))

Trait Implementations

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

See the traits documentation.

impl Send for PgConnection

impl SimpleConnection for PgConnection

Execute multiple SQL statements within the same string. Read more

impl Connection for PgConnection

The backend this type connects to

Establishes a new connection to the database Read more

Executes the given function inside of a database transaction Read more

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

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

Auto Trait Implementations

impl !Sync for PgConnection