RecordImportable
public protocol RecordImportable
Protocol for any Importable objects
-
To check type, importable must give is ‘type’ as table name
Declaration
Swift
var tableName: String { get } -
Check if field or relation exist
Declaration
Swift
func has(key: String) -> Bool -
Is is a relation
Declaration
Swift
func isRelation(key: String) -> Bool -
Is is a field
Declaration
Swift
func isField(key: String) -> Bool -
Import one attribute.
Declaration
Swift
func set(attribute: Attribute, value: Any?, with mapper: AttributeValueMapper) -
Get one attribute value.
Declaration
Swift
func get(attribute: Attribute, with mapper: AttributeValueMapper) -> Any? -
Import one private attribute
Declaration
Swift
func setPrivateAttribute(key: String, value: Any?) -
Get value for one private attribute
Declaration
Swift
func getPrivateAttribute(key: String) -> Any? -
has(attribute:Extension method) Check if field or relation exist
Declaration
Swift
public func has(attribute: Attribute) -> Bool -
get(attribute:Extension method) Get one attribute value.
Declaration
Swift
public func get(attribute: Attribute) -> Any?
RecordImportable Protocol Reference