Skip to content

Salesforce SOQL Syntax Support

SOQL (Salesforce Object Query Language) is Salesforce's object query language. It looks like a SELECT-only subset of SQL but has its own semantics: queries target sObjects instead of tables, use parent-to-child and child-to-parent relationship traversal instead of arbitrary joins, and support Salesforce-specific clauses such as TYPEOF, WITH SECURITY_ENFORCED, and date literals like LAST_N_DAYS:n.

General SQL Parser (GSP) parses SOQL with a dedicated grammar, giving you a full AST, offline syntax validation, and formatting for SOQL statements embedded in Apex code, integration tools, or data pipelines.

See the SOQL Keyword Compatibility Reference for keyword-as-identifier support.