From d9d93a72f27958b0a5d6fbc5c3a011833d149f8c Mon Sep 17 00:00:00 2001 From: Olivia Stigeborn Date: Fri, 3 Jun 2022 14:31:31 +0200 Subject: [PATCH] feat: json base type support --- internal/codegen/typescodegen/types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/codegen/typescodegen/types.go b/internal/codegen/typescodegen/types.go index b81bc9a..7a1f60b 100644 --- a/internal/codegen/typescodegen/types.go +++ b/internal/codegen/typescodegen/types.go @@ -27,6 +27,8 @@ func SpanSQLType(column *spanddl.Column) reflect.Type { return reflect.TypeOf(spansql.DateLiteral{}) case spansql.Timestamp: return reflect.TypeOf(spansql.TimestampLiteral{}) + case spansql.JSON: + return reflect.TypeOf(spansql.JSONLiteral{}) case spansql.Numeric: panic("TODO: implement support for NUMERIC") default: