Skip to content

v2.0.1

Compare
Choose a tag to compare
@pgajek2 pgajek2 released this 27 Jun 16:09
· 80 commits to main since this release

27-June-2023

Changes

Use Iterable Set

Based on Summer '23 the Set class now implements the Iterable interface.

https://help.salesforce.com/s/articleView?language=en_US&id=release-notes.rn_apex_set_implements_iterable.htm&release=244&type=5

Iterable was used as a supertype for List and Set.

custom LIKE

https://soql-lib.vercel.app/api/soql-filter#contains

You can specify custom contains with - and %.

SOQL.Filter.with(Account.Name).contains('_', 'My', '%')

of(String)

https://soql-lib.vercel.app/api/soql#of

You can create instance of SOQL dynamically.

SOQL of(String ofObject)

String ofObject = 'Account';
SOQL.of(ofObject).toList();

toField - null pointer check

https://soql-lib.vercel.app/api/soql#tofield

For null record .toField method will return null value.

Code Refactoring

Unused lines of code were removed.