Skip to content

Commit

Permalink
add isnull to psql data
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Mar 7, 2018
1 parent 6080505 commit 49f6676
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/PostgreSQL/Data/PostgreSQLData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ public struct PostgreSQLData {
/// The data's format.
public var format: PostgreSQLFormatCode

/// If `true`, this data is null.
public var isNull: Bool {
return data == nil
}

/// The actual data.
public var data: Data?

Expand Down

0 comments on commit 49f6676

Please sign in to comment.