This commit is contained in:
Gwendal Roué committed 2017-03-01 07:56:17 +01:00
1 parent 2d2c596f75
commit 42ebffc4fc
4 files changed
+13 -30

No files matched your search

@@ -234,12 +234,11 @@ extension QueryInterfaceRequest {
// MARK: Counting
/// Returns a request that selects the number of rows. Don't call it
/// directly: instead, use the `fetchCount` method.
/// The number of rows matched by the request.
///
/// - parameter db: A database connection.
public func countRequest(_ db: Database) throws -> AnyTypedRequest<Int> {
return try query.countRequest(db)
public func fetchCount(_ db: Database) throws -> Int {
return try query.fetchCount(db)
}
}