Struct diesel::pg::PgConnection [−][src]
pub struct PgConnection { /* fields omitted */ }
Expand description
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
Implementations
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
Execute multiple SQL statements within the same string. Read more
impl<Changes, Output> UpdateAndFetchResults<Changes, Output> for PgConnection where
Changes: Copy + AsChangeset<Target = <Changes as HasTable>::Table> + IntoUpdateTarget,
Update<Changes, Changes>: LoadQuery<PgConnection, Output>,
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.