summaryrefslogtreecommitdiff
path: root/hobgoblin/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-11-02 18:27:06 +0000
committerMichael Williamson <mike@zwobble.org>2026-11-02 18:27:06 +0000
commitb247d99c6950fec45199ff78f8bd16af48d5f96c (patch)
tree8617dd0ee61a9637e1b6912e89f45db14ac9b144 /hobgoblin/src
parent8b62e43603c8e191d3675b03c1857c8cd6229313 (diff)
Add int literals to SQL AST
Diffstat (limited to 'hobgoblin/src')
-rw-r--r--hobgoblin/src/output/lang/sql/ast.hob5
1 files changed, 5 insertions, 0 deletions
diff --git a/hobgoblin/src/output/lang/sql/ast.hob b/hobgoblin/src/output/lang/sql/ast.hob
index 117e3ac..16e7b64 100644
--- a/hobgoblin/src/output/lang/sql/ast.hob
+++ b/hobgoblin/src/output/lang/sql/ast.hob
@@ -50,9 +50,14 @@ struct SqlPrimaryKeyConstraint {
// == Expressions ==
sum SqlExpression {
+ variant SqlIntLiteral;
variant SqlRef;
}
+struct SqlIntLiteral {
+ field value: Int64;
+}
+
struct SqlRef {
field name: SqlIdentifier;
}