Mock DML Statements in Apex TestsBuilt-in mocking support lets you test your code without database operations, making tests faster and more isolated.
Comprehensive ResultsGet detailed operation results including success/failure status, record IDs, and error information for each DML operation.
Fluent APIChain DML operations with a clean, readable syntax. Insert, update, upsert, delete, undelete, and publish platform events.
Immediate OperationsExecute single DML operations immediately and get results without needing to call commitWork().
Relationship HandlingAutomatically resolve parent-child relationships across inserts. No need to manually assign IDs after parent inserts.
Security ControlsFull support for User/System mode and With/Without Sharing, plus field-level security stripping.