ModelFieldType
public enum ModelFieldType
Defines the type of a Model field.
Warning
Although this haspublic access, it is intended for internal & codegen use and should not be used
directly by host applications. The behavior of this may change without warning.
-
Declaration
Swift
case string -
Declaration
Swift
case int -
Declaration
Swift
case double -
Declaration
Swift
case date -
Declaration
Swift
case dateTime -
Declaration
Swift
case time -
Declaration
Swift
case timestamp -
Declaration
Swift
case bool -
Declaration
Swift
case `enum`(type: EnumPersistable.Type) -
Declaration
Swift
case embedded(type: Codable.Type, schema: ModelSchema?) -
Declaration
Swift
case embeddedCollection(of: Codable.Type, schema: ModelSchema?) -
Declaration
Swift
case model(name: ModelName) -
Declaration
Swift
case collection(of: ModelName) -
Declaration
Swift
public static func model(type: Model.Type) -> ModelFieldType -
Declaration
Swift
public static func collection(of type: Model.Type) -> ModelFieldType -
Declaration
Swift
public static func embedded(type: Codable.Type) -> ModelFieldType -
Declaration
Swift
public static func embeddedCollection(of type: Codable.Type) -> ModelFieldType -
Declaration
Swift
public var isArray: Bool { get } -
Declaration
Swift
public static func customType(_ type: Codable.Type) -> ModelFieldType -
Declaration
Swift
public static func from(type: Any.Type) -> ModelFieldType
View on GitHub