SOQLMutator
To manipulate a SOQL query given by a String
Better than doing regexp maybe it's time to start using a proper parser (e.g. https://github.com/mulesoft/salesforce-soql-parser)
Functions
Link copied to clipboard
Add fields to select
Link copied to clipboard
Add predicates to where clause
Link copied to clipboard
Link copied to clipboard
Check if query has order by clause
Link copied to clipboard
Check if query is ordering by given fields
Link copied to clipboard
Check if query is selecting by given field
Link copied to clipboard
Replace order by clause (or add one if none)
Link copied to clipboard
Replace fields being selected