Skip to content

Commit

Permalink
fluent gm (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 authored May 29, 2020
1 parent 3303411 commit 9259e39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/SQLiteKit/SQLiteRow+SQLRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ extension SQLiteRow: SQLRow {
}

public func decodeNil(column: String) throws -> Bool {
self.columns.offsets.keys.contains(column)
guard let data = self.column(column) else {
throw MissingColumn(column: column)
}
return data == .null
}

public func contains(column: String) -> Bool {
Expand Down

0 comments on commit 9259e39

Please sign in to comment.