Skip to content

Commit

Permalink
Add google.types.Date
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Feb 1, 2023
1 parent 8091890 commit dbf9a41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/converter/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (

"github.com/chreds/protoc-gen-bq-schema/protos"
"github.com/golang/glog"
"google.golang.org/protobuf/types/pluginpb"
"google.golang.org/protobuf/encoding/prototext"
"google.golang.org/protobuf/proto"
descriptor "google.golang.org/protobuf/types/descriptorpb"
"google.golang.org/protobuf/types/pluginpb"
)

var (
Expand All @@ -29,6 +29,7 @@ var (
".google.protobuf.BytesValue": "BYTES",
".google.protobuf.Duration": "STRING",
".google.protobuf.Timestamp": "TIMESTAMP",
".google.type.Date": "DATE",
}
typeFromFieldType = map[descriptor.FieldDescriptorProto_Type]string{
descriptor.FieldDescriptorProto_TYPE_DOUBLE: "FLOAT",
Expand Down

0 comments on commit dbf9a41

Please sign in to comment.