RecordJSON
public struct RecordJSON
extension RecordJSON: Codable
extension RecordJSON: JSONDecodable
extension RecordJSON: Equatable
Generic record object which contains JSON representation of your record.
-
The table name
Declaration
Swift
public let tableName: String
-
The JSON representation
Declaration
Swift
public let json: JSON
-
Return information about deleted record only if the table is special one that keep track of deleted records otherwise return nil
Declaration
Swift
public var deletedRecord: DeletedRecord? { get }
-
Get one attribute value by key.
Declaration
Swift
public subscript(key: String) -> Any? { get }
-
Get stamp of last modification
Declaration
Swift
public var stamp: Int? { get }
-
Get the primary key
Declaration
Swift
public var key: String? { get }
-
Get the time stamp of last modification
Declaration
Swift
public var timestamp: Date? { get }
-
Get global stamp of modification
Declaration
Swift
public var globalStamp: Int? { get }
-
Get JSON data for a key.
Declaration
Swift
public func deferredJSON(_ key: String) -> JSON?
-
Get Deferred object for a key.
Declaration
Swift
public func deferred(_ key: String) -> Deferred?
-
Could return a page in case of $expand request on specific field
Declaration
Swift
public func page(_ key: String) -> Page?
-
Could return a record in case of $expand request on specific field
Declaration
Swift
public func record(_ key: String, tableName: String = "") -> RecordJSON?
-
Return data as dictionar
Declaration
Swift
public var dictionaryObject: [String : Any]? { get }
-
Return all key of records.
Declaration
Swift
public var keys: [String]? { get }
-
Undocumented
Declaration
Swift
public init?(json: JSON)
-
Undocumented
Declaration
Swift
public static func array(json: JSON) -> [RecordJSON]?
-
Declaration
Swift
public static func == (lhf: RecordJSON, rhf: RecordJSON) -> Bool