File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public struct MySQLAlterTable: SQLAlterTable {
72
72
}
73
73
}
74
74
75
- extension SQLAlterTableBuilder where Connection. Query. AlterTable == MySQLAlterTable {
75
+ extension SQLAlterTableBuilder where Connectable . Connection. Query. AlterTable == MySQLAlterTable {
76
76
/// Specifies the position of a newly added column in a table relative to an existing column.
77
77
///
78
78
/// conn.alter(table: User.self)
Original file line number Diff line number Diff line change @@ -18,24 +18,24 @@ public struct MySQLDropIndex: SQLDropIndex {
18
18
}
19
19
20
20
/// Builds `MySQLDropIndex` queries.
21
- public final class MySQLDropIndexBuilder < Connection > : SQLQueryBuilder
22
- where Connection : SQLConnection , Connection. Query == MySQLQuery
21
+ public final class MySQLDropIndexBuilder < Connectable > : SQLQueryBuilder
22
+ where Connectable : SQLConnection , Connectable . Connection. Query == MySQLQuery
23
23
{
24
24
/// `AlterTable` query being built.
25
25
public var dropIndex : MySQLDropIndex
26
26
27
27
/// See `SQLQueryBuilder`.
28
- public var connection : Connection
28
+ public var connectable : Connectable
29
29
30
30
/// See `SQLQueryBuilder`.
31
31
public var query : MySQLQuery {
32
32
return . dropIndex( dropIndex)
33
33
}
34
34
35
35
/// Creates a new `SQLCreateIndexBuilder`.
36
- public init ( _ dropIndex: MySQLDropIndex , on connection : Connection ) {
36
+ public init ( _ dropIndex: MySQLDropIndex , on connectable : Connectable ) {
37
37
self . dropIndex = dropIndex
38
- self . connection = connection
38
+ self . connectable = connectable
39
39
}
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public struct MySQLUpsert: SQLSerializable {
23
23
}
24
24
}
25
25
26
- extension SQLInsertBuilder where Connection. Query. Insert == MySQLInsert {
26
+ extension SQLInsertBuilder where Connectable . Connection. Query. Insert == MySQLInsert {
27
27
/// Adds an `ON DUPLICATE KEY UPDATE` or "upsert" clause to the query.
28
28
///
29
29
/// conn.insert(into: Planet.self).value(earth)
You can’t perform that action at this time.
0 commit comments