mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 14:04:22 +01:00
rust/lib: expose mvccmode
This commit is contained in:
@@ -40,7 +40,7 @@ pub mod value;
|
||||
use transaction::TransactionBehavior;
|
||||
#[cfg(feature = "conn_raw_api")]
|
||||
use turso_core::types::WalFrameInfo;
|
||||
use turso_core::MvccMode;
|
||||
pub use turso_core::MvccMode;
|
||||
pub use value::Value;
|
||||
|
||||
pub use params::params_from_iter;
|
||||
|
||||
@@ -131,7 +131,7 @@ async fn setup_database(db_path: &str, mode: TransactionMode) -> Result<Database
|
||||
TransactionMode::Legacy => builder.build().await?,
|
||||
TransactionMode::Mvcc | TransactionMode::Concurrent => {
|
||||
builder
|
||||
.with_mvcc(true, turso::MvccMode::LogicalLog)
|
||||
.with_mvcc(true, turso::MvccMode::Noop)
|
||||
.build()
|
||||
.await?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user