@@ -65,6 +65,8 @@ public struct PostgresDataType: Codable, Equatable, ExpressibleByIntegerLiteral,
65
65
public static let int4Array = PostgresDataType ( 1007 )
66
66
/// `1009` _text
67
67
public static let textArray = PostgresDataType ( 1009 )
68
+ /// `1015` _varchar
69
+ public static let varcharArray = PostgresDataType ( 1015 )
68
70
/// `1016` _int8
69
71
public static let int8Array = PostgresDataType ( 1016 )
70
72
/// `1017` _point
@@ -154,6 +156,7 @@ public struct PostgresDataType: Codable, Equatable, ExpressibleByIntegerLiteral,
154
156
case . int2Array: return " SMALLINT[] "
155
157
case . int4Array: return " INTEGER[] "
156
158
case . textArray: return " TEXT[] "
159
+ case . varcharArray: return " VARCHAR[] "
157
160
case . int8Array: return " BIGINT[] "
158
161
case . pointArray: return " POINT[] "
159
162
case . float4Array: return " REAL[] "
@@ -192,6 +195,7 @@ public struct PostgresDataType: Codable, Equatable, ExpressibleByIntegerLiteral,
192
195
case . uuid: return . uuidArray
193
196
case . jsonb: return . jsonbArray
194
197
case . text: return . textArray
198
+ case . varchar: return . varcharArray
195
199
default : return nil
196
200
}
197
201
}
@@ -213,6 +217,7 @@ public struct PostgresDataType: Codable, Equatable, ExpressibleByIntegerLiteral,
213
217
case . uuidArray: return . uuid
214
218
case . jsonbArray: return . jsonb
215
219
case . textArray: return . text
220
+ case . varcharArray: return . varchar
216
221
default : return nil
217
222
}
218
223
}
0 commit comments