Skip to content

Commit a69fec0

Browse files
committed
Expose Transaction::new_unchecked
1 parent b3939f9 commit a69fec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/duckdb/src/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Transaction<'_> {
6464
/// possible, [`Transaction::new`] should be preferred, as it provides a
6565
/// compile-time guarantee that transactions are not nested.
6666
#[inline]
67-
fn new_unchecked(conn: &Connection) -> Result<Transaction<'_>> {
67+
pub fn new_unchecked(conn: &Connection) -> Result<Transaction<'_>> {
6868
let query = "BEGIN TRANSACTION";
6969
conn.execute_batch(query).map(move |_| Transaction {
7070
conn,

0 commit comments

Comments
 (0)