diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-11-01 21:09:24 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-11-01 21:09:24 +0000 |
| commit | 83cd529c660872f4e3a502cace62cd72a739ff05 (patch) | |
| tree | bb233ffff4c4ecb8e8e0f4fab07d391cb956c8ab /hobgoblin/src | |
| parent | da5f2e83708371b1497665c7d0ee8f382898247c (diff) | |
Extract Relation type
Diffstat (limited to 'hobgoblin/src')
| -rw-r--r-- | hobgoblin/src/ast/typed.hob | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/hobgoblin/src/ast/typed.hob b/hobgoblin/src/ast/typed.hob index 7959f0b..6343024 100644 --- a/hobgoblin/src/ast/typed.hob +++ b/hobgoblin/src/ast/typed.hob @@ -59,7 +59,7 @@ struct TypedNativeTypeDefinitionNode { struct TypedQueryDefinitionNode { field name: String; - field table: Table; + field relation: Relation; field docComment: DocComment; field source: Source; } @@ -103,3 +103,13 @@ struct TypedTableDefinitionNode { field docComment: DocComment; field source: Source; } + +// == Queries == + +sum Relation { + variant RelationTable; +} + +struct RelationTable { + field table: Table; +} |
