Skip to main content

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. All queries must use OmniQL syntax. For native database commands, use your database driver directly.

Parser Behavior

The oql.Parse() function uses this prefix to determine if it should engage the compiler.

Syntax Pattern

An OmniQL command follows this structure:

Entity Naming

OmniQL uses PascalCase entity names. The translator automatically lowercases and pluralizes them:
Note: The engine lowercases then pluralizes. It does not add underscores (snake_case).

Examples

Next Steps

Quickstart

Get running in 5 minutes

Filtering

Learn WHERE clauses and operators