diff --git a/CHANGELOG.md b/CHANGELOG.md index e8c43df19..a5b232c30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -107,16 +107,19 @@ Many APIs were changed: - func performExists(_ db: Database) -> Bool + func performExists(_ db: Database) throws -> Bool } + + extension QueryInterfaceRequest { +- func fetchCount(...) -> Int ++ func fetchCount(...) throws -> Int + } - struct QueryInterfaceRequest { + extension QueryInterfaceRequest where T: RowConvertible { - func fetch(...) -> DatabaseSequence - func fetchAll(...) -> [T] - func fetchOne(...) -> T? -- func fetchCount(...) -> Int + func fetchCursor(...) throws -> DatabaseCursor + func fetchAll(...) throws -> [T] + func fetchOne(...) throws -> T? -+ func fetchCount(...) throws -> Int } extension RowConvertible {