blob: 01c46ed81e6a5c51a0b2896b51e83bd6afcfd4e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{{- /*gotype: github.com/ClickHouse/ch-go/proto/cmd/ch-gen-col.Variants*/ -}}
// Code generated by ./cmd/ch-gen-col, DO NOT EDIT.
package proto
func inferGenerated(t ColumnType) Column {
switch t {
{{- range . }}
case ColumnTypeArray.Sub({{ .ColumnType }}):
return new({{ .Type }}).Array()
case ColumnTypeNullable.Sub({{ .ColumnType }}):
return new({{ .Type }}).Nullable()
case {{ .ColumnType }}:
return new({{ .Type }})
{{- end }}
default:
return nil
}
}
|