The : Prefix
All OmniQL queries start with a colon (:).
Why the Prefix?
OmniQL and native SQL share many keywords (CREATE, UPDATE, SELECT). The prefix acts as a switch, telling the system exactly how to handle the string.
| Query | Behavior |
|---|---|
:GET User... | ✅ Parsed and translated to target DB |
SELECT * ... | ❌ Error - missing : prefix |
Parser Behavior
Theoql.Parse() function uses this prefix to determine if it should engage the compiler.
Syntax Pattern
An OmniQL command follows this structure:| Part | Description | Example |
|---|---|---|
: | Required Prefix | : |
OPERATION | Action to perform | GET, CREATE, UPDATE, DELETE |
Entity | Target Table/Collection | User, Product, Order |
[clauses] | Optional modifiers | WHERE, ORDER BY, LIMIT |
Entity Naming
OmniQL uses PascalCase entity names. The translator automatically lowercases and pluralizes them:| You Write | Output |
|---|---|
User | users |
Product | products |
OrderItem | orderitems |
Note: The engine lowercases then pluralizes. It does not add underscores (snake_case).

