ModelPrimaryKey
public struct ModelPrimaryKey
-
Declaration
Swift
public var fields: [ModelField] -
Declaration
Swift
public var isCompositeKey: Bool { get } -
Convenience method to verify if a field is part of the primary key
Declaration
Swift
public func contains(named name: ModelFieldName) -> BoolParameters
namefield name
Return Value
true if the field is part of the primary key
-
Returns the first index in which a model field name of the collection is equal to the provided
nameReturnsnilif no element was found.Declaration
Swift
public func indexOfField(named name: ModelFieldName) -> Int?
View on GitHub