Skip to content

Commit 84a181a

Browse files
committed
fix indents
1 parent 33babf7 commit 84a181a

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

Sources/PerfectMySQL/MySQL.swift

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -217,18 +217,18 @@ public final class MySQL {
217217
return MYSQL_ENABLE_CLEARTEXT_PLUGIN
218218
case MySQLOpt.MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS:
219219
return MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS
220-
}
221-
}
222-
223-
func exposedOptionToMySQLServerOption(_ o: MySQLServerOpt) -> enum_mysql_set_option {
224-
switch o {
225-
case MySQLServerOpt.MYSQL_OPTION_MULTI_STATEMENTS_ON:
226-
return MYSQL_OPTION_MULTI_STATEMENTS_ON
227-
case MySQLServerOpt.MYSQL_OPTION_MULTI_STATEMENTS_OFF:
228-
return MYSQL_OPTION_MULTI_STATEMENTS_OFF
229-
}
230-
}
231-
220+
}
221+
}
222+
223+
func exposedOptionToMySQLServerOption(_ o: MySQLServerOpt) -> enum_mysql_set_option {
224+
switch o {
225+
case MySQLServerOpt.MYSQL_OPTION_MULTI_STATEMENTS_ON:
226+
return MYSQL_OPTION_MULTI_STATEMENTS_ON
227+
case MySQLServerOpt.MYSQL_OPTION_MULTI_STATEMENTS_OFF:
228+
return MYSQL_OPTION_MULTI_STATEMENTS_OFF
229+
}
230+
}
231+
232232
/// Sets connect options for connect()
233233
@discardableResult
234234
public func setOption(_ option: MySQLOpt) -> Bool {
@@ -258,12 +258,12 @@ public final class MySQL {
258258
}
259259
return b
260260
}
261-
262-
/// Sets connect options after connect()
263-
@discardableResult
264-
public func setServerOption(_ option: MySQLServerOpt) -> Bool {
265-
return mysql_set_server_option(mysqlPtr, exposedOptionToMySQLServerOption(option)) == 0
266-
}
261+
262+
/// Sets connect options after connect()
263+
@discardableResult
264+
public func setServerOption(_ option: MySQLServerOpt) -> Bool {
265+
return mysql_set_server_option(mysqlPtr, exposedOptionToMySQLServerOption(option)) == 0
266+
}
267267

268268
/// Class used to manage and interact with result sets
269269
public final class Results: IteratorProtocol {

Sources/PerfectMySQL/PerfectMySQL.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public enum MySQLOpt {
111111
MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS
112112
}
113113

114-
/// enum for mysql options
114+
/// enum for mysql server options
115115
public enum MySQLServerOpt {
116116
case MYSQL_OPTION_MULTI_STATEMENTS_ON, MYSQL_OPTION_MULTI_STATEMENTS_OFF
117117
}

0 commit comments

Comments
 (0)