summaryrefslogtreecommitdiff
path: root/hobgoblin/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-10-16 09:03:53 +0100
committerMichael Williamson <mike@zwobble.org>2026-10-16 09:03:53 +0100
commitb0c668a96bc8da225d7a0c35dfd7ce4178ebb7c4 (patch)
tree717467f7c153efec813d7926abd922e9845133f0 /hobgoblin/src
parent77c708cbb7a4fb49db50a8917bdcdd777eff6ccb (diff)
Add SQL AST for CREATE TABLE statements
Diffstat (limited to 'hobgoblin/src')
-rw-r--r--hobgoblin/src/output/lang/sql/ast.hob17
1 files changed, 17 insertions, 0 deletions
diff --git a/hobgoblin/src/output/lang/sql/ast.hob b/hobgoblin/src/output/lang/sql/ast.hob
new file mode 100644
index 0000000..9a51e38
--- /dev/null
+++ b/hobgoblin/src/output/lang/sql/ast.hob
@@ -0,0 +1,17 @@
+sum SqlStatement {
+ variant SqlCreateTableStatement;
+}
+
+struct SqlCreateTableStatement {
+ field name: SqlIdentifier;
+ field columns: List[SqlColumnDefinition];
+}
+
+struct SqlColumnDefinition {
+ field name: SqlIdentifier;
+ field typeName: SqlIdentifier;
+}
+
+struct SqlIdentifier {
+ field value: String;
+}