PreparedRequest
public struct PreparedRequest
A PreparedRequest is a request that is ready to be executed.
-
A prepared statement
Declaration
Swift
public var statement: SelectStatement -
An eventual adapter for rows fetched by the select statement
Declaration
Swift
public var adapter: RowAdapter? -
Creates a PreparedRequest.
Declaration
Swift
public init( statement: SelectStatement, adapter: RowAdapter? = nil)Parameters
statementA prepared statement that is ready to be executed.
adapterAn eventual adapter for rows fetched by the select statement.
-
Returns the request SQL.
Declaration
Swift
public func requestSQL(_ context: SQLGenerationContext) throws -> StringParameters
contextAn SQL generation context.
Return Value
An SQL string.
View on GitHub
Install in Dash
PreparedRequest Structure Reference