Storage

public enum Storage : Equatable

An SQLite storage (NULL, INTEGER, REAL, TEXT, BLOB).

  • The NULL storage class.

    Declaration

    Swift

    case null
  • The INTEGER storage class, wrapping an Int64.

    Declaration

    Swift

    case int64(Int64)
  • The REAL storage class, wrapping a Double.

    Declaration

    Swift

    case double(Double)
  • The TEXT storage class, wrapping a String.

    Declaration

    Swift

    case string(String)
  • The BLOB storage class, wrapping Data.

    Declaration

    Swift

    case blob(Data)
  • Returns Int64, Double, String, Data or nil.

    Declaration

    Swift

    public var value: DatabaseValueConvertible? { get }
  • Return true if the storages are identical.

    Unlike DatabaseValue equality that considers the integer 1 to be equal to the 1.0 double (as SQLite does), int64 and double storages are never equal.

    Declaration

    Swift

    public static func == (lhs: Storage, rhs: Storage) -> Bool