Skip to content

Commit 1d6963a

Browse files
committed
recursive decoding
1 parent d73f1a7 commit 1d6963a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PostgresKit/PostgresDataDecoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public struct PostgresDataDecoder {
120120
}
121121

122122
func decode<T>(_ type: T.Type) throws -> T where T : Decodable {
123-
fatalError()
123+
return try T.init(from: self.decoder)
124124
}
125125

126126
}

0 commit comments

Comments
 (0)