SelectResult

public class SelectResult

SelectResult represents a signle return value of the query statement.

  • Creates a SelectResult object with the given property name.

    Declaration

    Swift

    public static func property(_ property: String) -> As

    Parameters

    property

    The property name.

    Return Value

    The SelectResult.As object that you can give the alias name to the returned value.

  • Creates a SelectResult object with the given expression.

    Declaration

    Swift

    public static func expression(_ expression: Expression) -> As

    Parameters

    expression

    The expression.

    Return Value

    The SelectResult.As object that you can give the alias name to the returned value.

  • Creates a SelectResult object that returns all properties data. The query returned result will be grouped into a single CBLMutableDictionary object under the key of the data source name.

    Declaration

    Swift

    public static func all() -> From

    Return Value

    The SelectResult.From object that you can specify the data source alias name.

  • As

    SelectResult.As is a SelectResult that you can specify an alias name to it. The alias name can be used as the key for accessing the result value from the query Result object.

    See more

    Declaration

    Swift

    public final class As: SelectResult
  • SelectResult.From is a SelectResult that you can specify the data source alias name.

    See more

    Declaration

    Swift

    public final class From: SelectResult