Skip to content

Commit e30eeff

Browse files
committed
make Transaction::try_new public
1 parent bbca626 commit e30eeff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

kernel/src/transaction.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ impl Transaction {
8585
/// Instead of using this API, the more typical (user-facing) API is
8686
/// [Table::new_transaction](crate::table::Table::new_transaction) to create a transaction from
8787
/// a table automatically backed by the latest snapshot.
88-
pub(crate) fn try_new(snapshot: impl Into<Arc<Snapshot>>) -> DeltaResult<Self> {
88+
/// Use this API only if you need to create a transaction from a specific snapshot.
89+
pub fn try_new(snapshot: impl Into<Arc<Snapshot>>) -> DeltaResult<Self> {
8990
let read_snapshot = snapshot.into();
9091

9192
// important! before a read/write to the table we must check it is supported

0 commit comments

Comments
 (0)