Other Types

  • Used to constrain extensions:

    extension Property where ValueType: IdBase { … }

    (Swift doesn’t have parameterized extensions, or else we could write where ValueType == Id<T>.)

    See more

    Declaration

    Swift

    public protocol IdBase
  • Types conforming to this protocol provide persistence metadata.

    The code generator will make your Entity types conform to this for you and implement the requirements.

    See more

    Declaration

    Swift

    public protocol EntityInspectable
  • Base protocol all supported property types conform to.

    In the current version, you cannot easily make your custom value types be convertible to ObjectBox-supported property types. This would be the start, though. See the EntityPropertyType enum for a list of possible values.

    See more

    Declaration

    Swift

    public protocol EntityPropertyTypeConvertible