File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ public final class Connection {
216216 /// - Throws: `Result.Error` if query execution fails.
217217 ///
218218 /// - Returns: The statement.
219- public func run( _ statement: String , _ bindings: Binding ? ... ) throws -> Statement {
219+ @ discardableResult public func run( _ statement: String , _ bindings: Binding ? ... ) throws -> Statement {
220220 return try run ( statement, bindings)
221221 }
222222
@@ -231,7 +231,7 @@ public final class Connection {
231231 /// - Throws: `Result.Error` if query execution fails.
232232 ///
233233 /// - Returns: The statement.
234- public func run( _ statement: String , _ bindings: [ Binding ? ] ) throws -> Statement {
234+ @ discardableResult public func run( _ statement: String , _ bindings: [ Binding ? ] ) throws -> Statement {
235235 return try prepare ( statement) . run ( bindings)
236236 }
237237
@@ -246,7 +246,7 @@ public final class Connection {
246246 /// - Throws: `Result.Error` if query execution fails.
247247 ///
248248 /// - Returns: The statement.
249- public func run( _ statement: String , _ bindings: [ String : Binding ? ] ) throws -> Statement {
249+ @ discardableResult public func run( _ statement: String , _ bindings: [ String : Binding ? ] ) throws -> Statement {
250250 return try prepare ( statement) . run ( bindings)
251251 }
252252
You can’t perform that action at this time.
0 commit comments