mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
FetchRequest.makePreparedRequest
This commit is contained in:
1 parent
65de31a335
commit
e40e37bd04
13 files changed
+48
-51
No files matched your search
@@ -50,7 +50,7 @@ extension QueryInterfaceRequest: FetchRequest {
|
||||
/// - parameter singleResult: A hint as to whether the query should be optimized for a single result.
|
||||
/// - returns: A prepared statement and an eventual row adapter.
|
||||
/// :nodoc:
|
||||
public func preparedRequest(_ db: Database, forSingleResult singleResult: Bool) throws -> PreparedRequest {
|
||||
public func makePreparedRequest(_ db: Database, forSingleResult singleResult: Bool) throws -> PreparedRequest {
|
||||
var query = self.query
|
||||
|
||||
// Optimize query by setting a limit of 1 when appropriate
|
||||
|
||||
Reference in new issue
Block a user