Skip to content

Commit 400dfed

Browse files
committed
make Transaction::try_new public for internal_api
1 parent 7a37ceb commit 400dfed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

kernel/src/transaction/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use std::iter;
33
use std::sync::{Arc, LazyLock};
44
use std::time::{SystemTime, UNIX_EPOCH};
55

6+
use delta_kernel_derive::internal_api;
7+
68
use crate::actions::{get_log_add_schema, get_log_commit_info_schema, get_log_txn_schema};
79
use crate::actions::{CommitInfo, SetTransaction};
810
use crate::error::Error;
@@ -83,6 +85,8 @@ impl Transaction {
8385
/// Instead of using this API, the more typical (user-facing) API is
8486
/// [Snapshot::transaction](crate::snapshot::Snapshot::transaction) to create a transaction from
8587
/// a snapshot.
88+
/// Use this API only if you need to create a transaction from a specific snapshot.
89+
#[internal_api]
8690
pub(crate) fn try_new(snapshot: impl Into<Arc<Snapshot>>) -> DeltaResult<Self> {
8791
let read_snapshot = snapshot.into();
8892

0 commit comments

Comments
 (0)