SFDXHub
Browse/Apex Utility/Apex Fluently — DML Lib
🔧

Apex Fluently — DML Lib

Apex UtilityApexOpen Source
(0)

A fluent DML operations library for Apex. Provides a clean, chainable API for insert, update, upsert, and delete operations with built-in error handling and optional allOrNone control.

About

DML Lib logo

DML Lib

Beyond The Cloud logo

API version License GitHub Repo stars GitHub Release Codecov

Getting Started

The DML Lib provides functional constructs for DML statements in Apex.

DML Lib is part of Apex Fluently, a suite of production-ready Salesforce libraries by Beyond the Cloud.

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();

Deploy to Salesforce

Deploy to Salesforce

Documentation

Visit the documentation to view the full documentation.

Contributors

License notes:

  • 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)

Reviews (0)

No reviews yet. Be the first to leave one!

Details

Author
Beyond The Cloud Dev
Category
Apex Utility
Published
Feb 16, 2026