ParameterQuery
TableValuedParameterQuery
Used by
Used by
TableParameterQuery
Used by
Used by
StaticParameterQuery
Used by
Used by
DataQuery
SelectItem
JsonEachCall
Used by
Used by
WhereClause
Predicate
Used by
Used by
Expression
Operators
Binary operators supported in scalar expressions, listed from highest to lowest precedence.PowerSync evaluates all binary operators with equal precedence (left to right). Use parentheses to control evaluation order.
| Precedence | Operators | Description |
|---|---|---|
| 1 | || | String concatenation |
| 2 | * / % | Multiplication, division, modulo |
| 3 | + - | Addition, subtraction |
| 4 | & | << >> | Bitwise AND, OR, left/right shift |
| 5 | < > <= >= | Less than, greater than, etc. |
| 6 | = != | Equal, not equal |
PropertyAccess
Used by
Used by
Reference
CastExpression
Used by
Used by
FunctionCall
Used by
Used by
PrimaryExpression
Used by
Used by
Lexical Rules
| Token | Examples | Rule |
|---|---|---|
| Identifier | user_id, MY_TABLE, "Column Name", "with ""quotes"" inside" | [A-Z_] ([A-Z_0-9])* |
| StringLiteral | 'hello', 'it''s', '' | "'" ([\x20-\x26] | [\x28-\x7E])* "'" |
| IntegerLiteral | 0, 42, 12345 | ([0-9])+ |
| NumericLiteral | 3.14, 42, 0.5 | ([0-9])+ ("." ([0-9])+)? |
Identifier
Bare identifiers are normalized to lower case and may contain letters, digits, and underscores. Double-quoted identifiers (“name”) allow any printable character and support escaped quotes ("").Used by
Used by
StringLiteral
Single-quoted string literal. Embedded single quotes are escaped by doubling them (”).Used by
Used by
IntegerLiteral
One or more decimal digits (0-9).Used by
Used by
NumericLiteral
Decimal number: one or more digits with an optional fractional part (.digits).Used by
Used by