Skip to content

Commit

Permalink
update to connectable
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Sep 20, 2018
1 parent f56e89a commit 8f6b598
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/SQLite/SQL/SQLiteAlterTableBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extension SQLAlterTableBuilder where Connection.Connection.Query.AlterTable == SQLiteAlterTable {
extension SQLAlterTableBuilder where Connectable.Connection.Query.AlterTable == SQLiteAlterTable {
/// Renames the table.
///
/// conn.alter(table: Bar.self).rename(to: "foo").run()
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLite/SQL/SQLiteCreateTable.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extension SQLCreateTableBuilder where Connection.Connection.Query.CreateTable == SQLiteCreateTable {
extension SQLCreateTableBuilder where Connectable.Connection.Query.CreateTable == SQLiteCreateTable {
/// By default, every row in SQLite has a special column, usually called the "rowid", that uniquely identifies that row within
/// the table. However if the phrase "WITHOUT ROWID" is added to the end of a CREATE TABLE statement, then the special "rowid"
/// column is omitted. There are sometimes space and performance advantages to omitting the rowid.
Expand Down
6 changes: 3 additions & 3 deletions Sources/SQLite/SQL/SQLiteDropIndex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ public final class SQLiteDropIndexBuilder<Connectable>: SQLQueryBuilder
public var dropIndex: SQLiteDropIndex

/// See `SQLQueryBuilder`.
public var connection: Connectable
public var connectable: Connectable

/// See `SQLQueryBuilder`.
public var query: SQLiteQuery {
return .dropIndex(dropIndex)
}

/// Creates a new `SQLCreateIndexBuilder`.
public init(_ dropIndex: SQLiteDropIndex, on connection: Connectable) {
public init(_ dropIndex: SQLiteDropIndex, on connectable: Connectable) {
self.dropIndex = dropIndex
self.connection = connection
self.connectable = connectable
}
}

Expand Down

0 comments on commit 8f6b598

Please sign in to comment.