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

CategoryFeatureProverEVM Verification
DataTypesBool / Boolean✅✅
Uint8 (8 bits)✅✅
TinyInt (8 bits)✅✅
SmallInt (16 bits)✅✅
Int / Integer (32 bits)✅✅
BigInt (64 bits)✅✅
Int128✅✅
Decimal75✅✅
Varchar✅✅
Varbinary✅✅
Timestamp✅✅
OperatorsAND, OR✅✅
NOT✅✅
+, –, *✅✅
/❌❌
=, !=✅✅
>, ≥, <, ≤✅✅
Aggregate FunctionsSUM✅✅
COUNT✅✅
SELECT SyntaxWHERE 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



Did this page help you?