This commit is contained in:
Gwendal Roué committed 2017-03-01 05:32:52 +01:00
1 parent fa464b489d
commit 2d2c596f75
5 files changed
+64 -5

No files matched your search

@@ -90,8 +90,8 @@ struct QueryInterfaceSelectQueryDefinition {
return sql
}
/// Returns a fetch request that counts the number of rows matched by self.
var countRequest: AnyTypedRequest<Int> {
/// Part of Request protocol
func countRequest(_ db: Database) throws -> AnyTypedRequest<Int> {
return countQuery.bound(to: Int.self)
}