Equivalent to transaction handling in Couchbase Lite?

Im quite new to couchbase and Im currently porting the backend of a Qt Application from Couchbase Lite to N1QL + libcouchbase. I recognized that in the save function to store data from the app into db for example, they used transactions from the cb lite API to manage these critical operations. I didnt really find something about that in the API documentation or on the forums so my simple question is as follows. Is there any equivalent for transaction handling in libcouchbase or is this a couchbase lite exclusive feature? I already set up a upsert function so the last thing I need to add would be transaction handling if exists in libcouchbase. Any answer and help is highly appreciated, thanks!