Open st3fan opened 9 years ago
I submitted a pull request to fix this issue: https://github.com/ryanfowler/SwiftData/pull/26
/**
Return the column value as an Int64
:returns: An Optional Int64 corresponding to the apprioriate column value. Will be nil if: the column name does not exist, the value cannot be cast as a Int64, or the value is NULL
*/
public func asInt64() -> Int64?
{
return value as? Int64
}
The library currently does not support the
Int64
type. It should be possible to store and retrieveInt64
values by wrapping them in anNSNumber
.