The DML Lib provides functional constructs for DML statements in Apex.
For more details, please refer to the documentation.
Insert DML
new DML()
.toInsert(new Account(Name = 'My Account'))
.commitWork();Update DML
Account account = [SELECT Id FROM Account LIMIT 1];
new DML()
.toUpdate(new Account(Id = account.Id, Name = 'New Name'))
.commitWork();- For proper license management each repository should contain LICENSE file similar to this one.
- each original class should contain copyright mark: © Copyright 2025, Beyond The Cloud Sp. z o.o. (BeyondTheCloud.Dev)