Swift 3 Grand Renaming: SQLColumn -> Column

This commit is contained in:
Gwendal Roué committed 2016-08-07 10:38:24 +02:00
1 parent b6587da081
commit 00a1eebf60
24 files changed
+108 -108

No files matched your search

+5 -5
View File
@@ -246,8 +246,8 @@ public final class TableDefinition {
/// try db.create(table: "persons") { t in
/// t.column("personalPhone", .Text)
/// t.column("workPhone", .Text)
/// let personalPhone = SQLColumn("personalPhone")
/// let workPhone = SQLColumn("workPhone")
/// let personalPhone = Column("personalPhone")
/// let workPhone = Column("workPhone")
/// t.check(personalPhone != nil || workPhone != nil)
/// }
///
@@ -497,11 +497,11 @@ public final class ColumnDefinition {
///
/// See https://www.sqlite.org/lang_createtable.html#ckconst
///
/// - parameter condition: A closure whose argument is an SQLColumn that
/// - parameter condition: A closure whose argument is an Column that
/// represents the defined column, and returns the expression to check.
/// - returns: Self so that you can further refine the column definition.
@discardableResult public func check(_ condition: @noescape (SQLColumn) -> _SQLExpressible) -> Self {
checkExpression = condition(SQLColumn(name)).sqlExpression
@discardableResult public func check(_ condition: @noescape (Column) -> _SQLExpressible) -> Self {
checkExpression = condition(Column(name)).sqlExpression
return self
}