mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 05:48:56 +08:00 
			
		
		
		
	[ci skip] Fix Transaction doc
This commit is contained in:
		| @@ -98,9 +98,9 @@ pub struct Savepoint<'conn> { | ||||
| impl<'conn> Transaction<'conn> { | ||||
|     /// Begin a new transaction. Cannot be nested; see `savepoint` for nested | ||||
|     /// transactions. | ||||
|     // Even though we don't mutate the connection, we take a `&mut Connection` | ||||
|     // so as to prevent nested or concurrent transactions on the same | ||||
|     // connection. | ||||
|     /// Even though we don't mutate the connection, we take a `&mut Connection` | ||||
|     /// so as to prevent nested or concurrent transactions on the same | ||||
|     /// connection. | ||||
|     pub fn new(conn: &mut Connection, behavior: TransactionBehavior) -> Result<Transaction> { | ||||
|         let query = match behavior { | ||||
|             TransactionBehavior::Deferred => "BEGIN DEFERRED", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user