PoSQL SQL Syntax & Supported Operations
List of operations that are supported in the SXT chain
Proof of SQL uses sqlparser to parse SQL, currently supporting the following syntax
| Category | Feature | Prover | EVM Verification |
|---|---|---|---|
| DataTypes | Bool / Boolean | ✅ | ✅ |
| Uint8 (8 bits) | ✅ | ✅ | |
| TinyInt (8 bits) | ✅ | ✅ | |
| SmallInt (16 bits) | ✅ | ✅ | |
| Int / Integer (32 bits) | ✅ | ✅ | |
| BigInt (64 bits) | ✅ | ✅ | |
| Int128 | ✅ | ✅ | |
| Decimal75 | ✅ | ✅ | |
| Varchar | ✅ | ✅ | |
| Varbinary | ✅ | ✅ | |
| Timestamp | ✅ | ✅ | |
| Operators | AND, OR | ✅ | ✅ |
| NOT | ✅ | ✅ | |
| +, –, * | ✅ | ✅ | |
| / | ❌ | ❌ | |
| =, != | ✅ | ✅ | |
>, ≥, <, ≤ | ✅ | ✅ | |
| Aggregate Functions | SUM | ✅ | ✅ |
| COUNT | ✅ | ✅ | |
| SELECT Syntax | WHERE clause | ✅ | ✅ |
| GROUP BY clause [1] | ✅ | ✅ | |
| LIMIT clause | ✅ | ✅ | |
| OFFSET clause | ✅ | ✅ |
[1] Currently, only supported group by in 0 or 1 columns
For more details please refer to DataFusion SELECT syntax.
Reserved keywords
The following keywords may not be used as aliases:
- count
For more details, please refer to https://github.com/spaceandtimefdn/sxt-proof-of-sql/blob/main/docs%2FSQLSyntaxSpecification.md
Updated 1 day ago