Index

RBORMResult.swift

Classes


RBORMResult

Stores the result of an ORM query execution.

Properties

Whether or not the result is valid.
public var isValid Bool { get }

If the query was of a scalar type then this will be populated e.g. count .
public var scalarValue Any? { get }

Functions

If the query was of a set type then this will return the first orm object.
public func first<T : RBORMObject>() -> T?

If the query was of a set type then this will return the last orm object.
public func last<T : RBORMObject>() -> T?

If the query was of a set type then this will return the list of orm objects.
public func objects<T : RBORMObject>() -> [T]?

If the query was of a set type then this will return the list of orm objects.
public func objects() -> [RBORMObject]?