According to the official document -
https://developer.salesforce.com/docs/atlas.en-us.198.0.apexcode.meta/apexcode/apex_transaction.htm
I understand that if there is any error in a transaction all the DML statement are rolled back and nothing is committed to the database. After reading this document:
I read that if we give an additional parameter- false while calling a Database class to insert then we can do a partial commit to database and the record with error is rolled back.
So how does a Database.Insert operation with false attribute behaves in a transaction as compared to the DML operation - insert? Would the Database class allow a partial commit if there is any error in a transaction?