Raw

public struct Raw : Query

An arbitrary query represented by a String. The generated query will be a concatenation of the supplied query string and tables.

  • A String containing the query.

    Declaration

    Swift

    public let query: String
  • The table to apply the query on.

    Declaration

    Swift

    public let tables: [Table]
  • Initialize an instance of Raw.

    Declaration

    Swift

    public init(query: String, table: Table...)

    Parameters

    query

    A String containing the query.

    table

    The table(s) to apply the query on.

  • Initialize an instance of Raw.

    Declaration

    Swift

    public init(query: String, tables: [Table])

    Parameters

    query

    A String containing the query.

    tables

    An array of tables to apply the query on.

  • Build the query using QueryBuilder.

    Throws

    QueryError.syntaxError if query build fails.

    Declaration

    Swift

    public func build(queryBuilder: QueryBuilder) throws -> String

    Parameters

    queryBuilder

    The QueryBuilder to use.

    Return Value

    A String representation of the query.