Skip to content

Commit

Permalink
Apply Swift3 case convention to internal enum Modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfriend committed May 21, 2017
1 parent 426e7d6 commit 89630b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/SQLite/Typed/Schema.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension Table {
block(builder)

let clauses: [Expressible?] = [
create(Table.identifier, tableName(), temporary ? .Temporary : nil, ifNotExists),
create(Table.identifier, tableName(), temporary ? .temporary : nil, ifNotExists),
"".wrap(builder.definitions) as Expression<Void>,
withoutRowid ? Expression<Void>(literal: "WITHOUT ROWID") : nil
]
Expand All @@ -52,7 +52,7 @@ extension Table {

public func create(_ query: QueryType, temporary: Bool = false, ifNotExists: Bool = false) -> String {
let clauses: [Expressible?] = [
create(Table.identifier, tableName(), temporary ? .Temporary : nil, ifNotExists),
create(Table.identifier, tableName(), temporary ? .temporary : nil, ifNotExists),
Expression<Void>(literal: "AS"),
query
]
Expand Down Expand Up @@ -133,7 +133,7 @@ extension Table {

public func createIndex(_ columns: [Expressible], unique: Bool = false, ifNotExists: Bool = false) -> String {
let clauses: [Expressible?] = [
create("INDEX", indexName(columns), unique ? .Unique : nil, ifNotExists),
create("INDEX", indexName(columns), unique ? .unique : nil, ifNotExists),
Expression<Void>(literal: "ON"),
tableName(qualified: false),
"".wrap(columns) as Expression<Void>
Expand Down Expand Up @@ -176,7 +176,7 @@ extension View {

public func create(_ query: QueryType, temporary: Bool = false, ifNotExists: Bool = false) -> String {
let clauses: [Expressible?] = [
create(View.identifier, tableName(), temporary ? .Temporary : nil, ifNotExists),
create(View.identifier, tableName(), temporary ? .temporary : nil, ifNotExists),
Expression<Void>(literal: "AS"),
query
]
Expand Down Expand Up @@ -513,8 +513,8 @@ private func reference(_ primary: (QueryType, Expressible)) -> Expressible {

private enum Modifier : String {

case Unique = "UNIQUE"
case unique = "UNIQUE"

case Temporary = "TEMPORARY"
case temporary = "TEMPORARY"

}

0 comments on commit 89630b2

Please sign in to comment.