pub struct PgConnection { /* fields omitted */ }
Build a transaction, specifying additional details such as isolation level
See TransactionBuilder
for more examples.
conn.build_transaction()
.read_only()
.serializable()
.deferrable()
.run(|| Ok(()))
Execute multiple SQL statements within the same string. Read more
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