SQLSelectQuery
public protocol SQLSelectQuery : Request, SQLCollection
This protocol is an implementation detail of the query interface. Do not use it directly.
See https://github.com/groue/GRDB.swift/#the-query-interface
Low Level Query Interface
SQLSelectQuery is the protocol for types that represent a full select query.
-
This function is an implementation detail of the query interface. Do not use it directly.
See https://github.com/groue/GRDB.swift/#the-query-interface
Low Level Query Interface
Returns the SQL string of the select query.
When the arguments parameter is nil, any value must be written down as a literal in the returned SQL.
When the arguments parameter is not nil, then values may be replaced by
?
or colon-prefixed tokens, and fed into arguments.Declaration
Swift
func selectQuerySQL(_ arguments: inout StatementArguments?) -> String
-
exists()
Extension methodReturns an SQL expression that checks whether the receiver, as a subquery, returns any row.
let request = Person.all() request.exists() // EXISTS (SELECT * FROM persons)
Declaration
Swift
public func exists() -> SQLExpression
-
collectionSQL(_:)
Extension methodThis function is an implementation detail of the query interface. Do not use it directly.
See https://github.com/groue/GRDB.swift/#the-query-interface
Low Level Query Interface
See SQLCollection.collectionSQL(_)
Declaration
Swift
public func collectionSQL(_ arguments: inout StatementArguments?) -> String
-
prepare(_:)
Extension methodA tuple that contains a prepared statement that is ready to be executed, and an eventual row adapter.
Declaration
Swift
public func prepare(_ db: Database) throws -> (SelectStatement, RowAdapter?)