@@ -65,6 +65,8 @@ public struct PostgresDataType: Codable, Equatable, ExpressibleByIntegerLiteral,
6565 public static let int4Array = PostgresDataType ( 1007 )
6666 /// `1009` _text
6767 public static let textArray = PostgresDataType ( 1009 )
68+ /// `1015` _varchar
69+ public static let varcharArray = PostgresDataType ( 1015 )
6870 /// `1016` _int8
6971 public static let int8Array = PostgresDataType ( 1016 )
7072 /// `1017` _point
@@ -154,6 +156,7 @@ public struct PostgresDataType: Codable, Equatable, ExpressibleByIntegerLiteral,
154156 case . int2Array: return " SMALLINT[] "
155157 case . int4Array: return " INTEGER[] "
156158 case . textArray: return " TEXT[] "
159+ case . varcharArray: return " VARCHAR[] "
157160 case . int8Array: return " BIGINT[] "
158161 case . pointArray: return " POINT[] "
159162 case . float4Array: return " REAL[] "
@@ -192,6 +195,7 @@ public struct PostgresDataType: Codable, Equatable, ExpressibleByIntegerLiteral,
192195 case . uuid: return . uuidArray
193196 case . jsonb: return . jsonbArray
194197 case . text: return . textArray
198+ case . varchar: return . varcharArray
195199 default : return nil
196200 }
197201 }
@@ -213,6 +217,7 @@ public struct PostgresDataType: Codable, Equatable, ExpressibleByIntegerLiteral,
213217 case . uuidArray: return . uuid
214218 case . jsonbArray: return . jsonb
215219 case . textArray: return . text
220+ case . varcharArray: return . varchar
216221 default : return nil
217222 }
218223 }
0 commit comments