NSNumber
extension NSNumber: DatabaseValueConvertible
NSNumber adopts DatabaseValueConvertible
-
Returns a value that can be stored in the database.
Declaration
Swift
public var databaseValue: DatabaseValue { get }
-
Returns an NSNumber initialized from dbValue, if possible.
Declaration
Swift
public static func fromDatabaseValue(_ dbValue: DatabaseValue) -> `Self`?