Documentation

This commit is contained in:
Gwendal Roué committed 2016-07-21 19:10:41 +02:00
1 parent fcf90a053a
commit 0e46ff2b6d
1 file changed
+2 -2
+2 -2
View File
@@ -920,8 +920,8 @@ extension Database {
return indexes
}
/// True if a set of columns uniquely identifies a row, that is to say if
/// the columns are the primary key, or if there is a unique index on them.
/// True if a sequence of columns uniquely identifies a row, that is to say
/// if the columns are the primary key, or if there is a unique index on them.
public func table<T: SequenceType where T.Generator.Element == String>(tableName: String, hasUniqueKey columns: T) throws -> Bool {
let primaryKey = try self.primaryKey(tableName) // first, so that we fail early and consistently should the table not exist
let columns = Set(columns)