@@ -13,29 +13,29 @@ public struct PostgreSQLDropIndex: SQLDropIndex {
13
13
}
14
14
15
15
/// Builds `PostgreSQLDropIndex` queries.
16
- public final class PostgreSQLDropIndexBuilder < Connection > : SQLQueryBuilder
17
- where Connection : SQLConnection , Connection. Query == PostgreSQLQuery
16
+ public final class PostgreSQLDropIndexBuilder < Connectable > : SQLQueryBuilder
17
+ where Connectable : SQLConnectable , Connectable . Connection. Query == PostgreSQLQuery
18
18
{
19
19
/// `AlterTable` query being built.
20
20
public var dropIndex : PostgreSQLDropIndex
21
21
22
22
/// See `SQLQueryBuilder`.
23
- public var connection : Connection
23
+ public var connectable : Connectable
24
24
25
25
/// See `SQLQueryBuilder`.
26
26
public var query : PostgreSQLQuery {
27
27
return . dropIndex( dropIndex)
28
28
}
29
29
30
30
/// Creates a new `SQLCreateIndexBuilder`.
31
- public init ( _ dropIndex: PostgreSQLDropIndex , on connection : Connection ) {
31
+ public init ( _ dropIndex: PostgreSQLDropIndex , on connectable : Connectable ) {
32
32
self . dropIndex = dropIndex
33
- self . connection = connection
33
+ self . connectable = connectable
34
34
}
35
35
}
36
36
37
37
38
- extension SQLConnection where Query == PostgreSQLQuery {
38
+ extension SQLConnectable where Connection . Query == PostgreSQLQuery {
39
39
/// Creates a `PostgreSQLDropIndexBuilder` for this connection.
40
40
public func drop( index identifier: PostgreSQLIdentifier ) -> PostgreSQLDropIndexBuilder < Self > {
41
41
return . init( PostgreSQLDropIndex ( identifier: identifier) , on: self )
0 commit comments