diff options
Diffstat (limited to 'hobgoblin/src')
| -rw-r--r-- | hobgoblin/src/ast/typed.hob | 3 | ||||
| -rw-r--r-- | hobgoblin/src/types.hob | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/hobgoblin/src/ast/typed.hob b/hobgoblin/src/ast/typed.hob index b65ecdd..a734d7c 100644 --- a/hobgoblin/src/ast/typed.hob +++ b/hobgoblin/src/ast/typed.hob @@ -2,6 +2,7 @@ import {DocComment} from ast; import {Source} from sources; import { EnumType, + Field, NamespaceName, SimpleNativeType, SimpleStructType, @@ -89,7 +90,7 @@ sum TypedDatabaseSchemaStatementNode { struct TypedTableDefinitionNode { field name: String; field rowType: StructType; - field primaryKey: String; + field primaryKey: Field; field docComment: DocComment; field source: Source; } diff --git a/hobgoblin/src/types.hob b/hobgoblin/src/types.hob index 5e96164..2473b6c 100644 --- a/hobgoblin/src/types.hob +++ b/hobgoblin/src/types.hob @@ -21,3 +21,6 @@ native SumType { native TypeOrConstructor[T] { } + +native Field { +} |
