You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/PostgresNIO/Data/PostgresData+JSON.swift
+2
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,10 @@ extension PostgresData {
37
37
}
38
38
}
39
39
40
+
@available(*, deprecated, message:"This protocol is going to be replaced with ``PostgresEncodable`` and ``PostgresDecodable`` and conforming to ``Codable`` at the same time")
Copy file name to clipboardExpand all lines: Sources/PostgresNIO/Data/PostgresData+JSONB.swift
+2
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,10 @@ extension PostgresData {
48
48
}
49
49
}
50
50
51
+
@available(*, deprecated, message:"This protocol is going to be replaced with ``PostgresEncodable`` and ``PostgresDecodable`` and conforming to ``Codable`` at the same time")
@@ -26,7 +26,10 @@ public struct PostgresData: Sendable, CustomStringConvertible, CustomDebugString
26
26
self.formatCode = formatCode
27
27
self.value = value
28
28
}
29
-
29
+
}
30
+
31
+
@available(*, deprecated, message:"Deprecating conformance to `CustomStringConvertible` as a first step of deprecating `PostgresData`. Please use `PostgresBindings` or `PostgresCell` instead.")
32
+
extensionPostgresData:CustomStringConvertible{
30
33
publicvardescription:String{
31
34
guardvar value =self.value else{
32
35
return"<null>"
@@ -93,12 +96,16 @@ public struct PostgresData: Sendable, CustomStringConvertible, CustomDebugString
93
96
return"\(raw) (\(self.type))"
94
97
}
95
98
}
99
+
}
96
100
101
+
@available(*, deprecated, message:"Deprecating conformance to `CustomDebugStringConvertible` as a first step of deprecating `PostgresData`. Please use `PostgresBindings` or `PostgresCell` instead.")
0 commit comments