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
queryA String containing the query.
tableThe table(s) to apply the query on.
-
Initialize an instance of Raw.
Declaration
Swift
public init(query: String, tables: [Table])Parameters
queryA String containing the query.
tablesAn 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 -> StringParameters
queryBuilderThe QueryBuilder to use.
Return Value
A String representation of the query.
View on GitHub
Raw Structure Reference