Skip to content

Commit 49f6676

Browse files
committed
add isnull to psql data
1 parent 6080505 commit 49f6676

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/PostgreSQL/Data/PostgreSQLData.swift

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ public struct PostgreSQLData {
88
/// The data's format.
99
public var format: PostgreSQLFormatCode
1010

11+
/// If `true`, this data is null.
12+
public var isNull: Bool {
13+
return data == nil
14+
}
15+
1116
/// The actual data.
1217
public var data: Data?
1318

0 commit comments

Comments
 (0)