From a2f7bd67ec737a3a4e6b3b9c07bc17afbef6bbed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 4 Sep 2015 20:31:53 +0200 Subject: [PATCH] RowMode.exists() is now final. --- GRDB/RowModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GRDB/RowModel.swift b/GRDB/RowModel.swift index e00fee121..5db03d8e6 100644 --- a/GRDB/RowModel.swift +++ b/GRDB/RowModel.swift @@ -411,7 +411,7 @@ public class RowModel { - parameter db: A Database. - returns: Whether the primary key matches a row in the database. */ - public func exists(db: Database) -> Bool { + final public func exists(db: Database) -> Bool { return (Row.fetchOne(DataMapper(self).existsStatement(db)) != nil) }