mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
QueryInterfaceRequest.deleteAll (for @pakko972)
This commit is contained in:
1 parent
238ebdeed8
commit
e4ae0988a4
4 files changed
+74
No files matched your search
@@ -233,6 +233,19 @@ extension QueryInterfaceRequest {
|
||||
}
|
||||
|
||||
|
||||
extension QueryInterfaceRequest {
|
||||
|
||||
// MARK: Deleting
|
||||
|
||||
/// Returns the number of rows matched by the request.
|
||||
///
|
||||
/// - parameter db: A database connection.
|
||||
public func deleteAll(db: Database) throws {
|
||||
try query.makeDeleteStatement(db).execute()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extension QueryInterfaceRequest {
|
||||
|
||||
// MARK: QueryInterfaceRequest as subquery
|
||||
|
||||
Reference in new issue
Block a user