BREAKING CHANGE: Remove common prefix on TransactionBehavior case names.

This commit is contained in:
John Gallagher
2015-12-12 14:22:50 -05:00
parent b1cde705be
commit 6bcc3edccd
3 changed files with 12 additions and 12 deletions

View File

@@ -74,9 +74,7 @@ use libc::{c_int, c_void, c_char};
use types::{ToSql, FromSql};
pub use transaction::{SqliteTransaction, Transaction};
pub use transaction::{TransactionBehavior, TransactionDeferred,
TransactionImmediate, TransactionExclusive};
pub use transaction::{SqliteTransaction, Transaction, TransactionBehavior};
#[cfg(feature = "load_extension")]
pub use load_extension_guard::{SqliteLoadExtensionGuard, LoadExtensionGuard};
@@ -286,7 +284,7 @@ impl Connection {
///
/// Will return `Err` if the underlying SQLite call fails.
pub fn transaction<'a>(&'a self) -> Result<Transaction<'a>> {
Transaction::new(self, TransactionDeferred)
Transaction::new(self, TransactionBehavior::Deferred)
}
/// Begin a new transaction with a specified behavior.