@@ -89,7 +89,7 @@ public final class Field<Value: ClickHouseDataType>: ClickHouseColumnConvertible
89
89
self
90
90
}
91
91
92
-
92
+
93
93
fileprivate init (
94
94
key: String ,
95
95
isPrimary: Bool = false ,
@@ -104,6 +104,7 @@ public final class Field<Value: ClickHouseDataType>: ClickHouseColumnConvertible
104
104
self . columnMetadata = columnMetadata
105
105
self . wrappedValue = [ ]
106
106
}
107
+
107
108
public init (
108
109
key: String ,
109
110
isPrimary: Bool = false ,
@@ -119,7 +120,7 @@ public final class Field<Value: ClickHouseDataType>: ClickHouseColumnConvertible
119
120
}
120
121
}
121
122
122
- extension Field where Value == String {
123
+ public extension Field where Value == String {
123
124
convenience init (
124
125
key: String ,
125
126
isPrimary: Bool = false ,
@@ -130,7 +131,8 @@ extension Field where Value == String {
130
131
self . init ( key: key, isPrimary: isPrimary, isOrderBy: isOrderBy, isLowCardinality: isLowCardinality, columnMetadata: . fixedStringLength( fixedStringLen) )
131
132
}
132
133
}
133
- extension Field where Value == ClickHouseDateTime {
134
+
135
+ public extension Field where Value == ClickHouseDateTime {
134
136
convenience init (
135
137
key: String ,
136
138
isPrimary: Bool = false ,
@@ -140,9 +142,8 @@ extension Field where Value == ClickHouseDateTime {
140
142
) {
141
143
self . init ( key: key, isPrimary: isPrimary, isOrderBy: isOrderBy, isLowCardinality: isLowCardinality, columnMetadata: . dateTimeTimeZone( timeZone) )
142
144
}
143
-
144
145
}
145
- extension Field where Value == ClickHouseDateTime64 {
146
+ public extension Field where Value == ClickHouseDateTime64 {
146
147
convenience init (
147
148
key: String ,
148
149
isPrimary: Bool = false ,
@@ -153,6 +154,7 @@ extension Field where Value == ClickHouseDateTime64 {
153
154
) {
154
155
self . init ( key: key, isPrimary: isPrimary, isOrderBy: isOrderBy, isLowCardinality: isLowCardinality, columnMetadata: . dateTime64Precision( precision, timeZone) )
155
156
}
157
+
156
158
convenience init (
157
159
key: String ,
158
160
isPrimary: Bool = false ,
@@ -162,7 +164,7 @@ extension Field where Value == ClickHouseDateTime64 {
162
164
fatalError ( " missing precision for DateTime64 " )
163
165
}
164
166
}
165
- extension Field where Value == ClickHouseEnum8 {
167
+ public extension Field where Value == ClickHouseEnum8 {
166
168
convenience init (
167
169
key: String ,
168
170
isPrimary: Bool = false ,
@@ -182,7 +184,7 @@ extension Field where Value == ClickHouseEnum8 {
182
184
fatalError ( " missing enum-mapping for enum8 " )
183
185
}
184
186
}
185
- extension Field where Value == ClickHouseEnum16 {
187
+ public extension Field where Value == ClickHouseEnum16 {
186
188
convenience init (
187
189
key: String ,
188
190
isPrimary: Bool = false ,
@@ -192,6 +194,7 @@ extension Field where Value == ClickHouseEnum16 {
192
194
) {
193
195
self . init ( key: key, isPrimary: isPrimary, isOrderBy: isOrderBy, isLowCardinality: isLowCardinality, columnMetadata: . enum16Map( mapping) )
194
196
}
197
+
195
198
convenience init (
196
199
key: String ,
197
200
isPrimary: Bool = false ,
0 commit comments