diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-10-16 09:03:53 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-10-16 09:03:53 +0100 |
| commit | b0c668a96bc8da225d7a0c35dfd7ce4178ebb7c4 (patch) | |
| tree | 717467f7c153efec813d7926abd922e9845133f0 /hobgoblin/src | |
| parent | 77c708cbb7a4fb49db50a8917bdcdd777eff6ccb (diff) | |
Add SQL AST for CREATE TABLE statements
Diffstat (limited to 'hobgoblin/src')
| -rw-r--r-- | hobgoblin/src/output/lang/sql/ast.hob | 17 |
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; +} |
