Skip to content

Commit

Permalink
add raw note
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Mar 22, 2017
1 parent c052194 commit 3365a70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Fluent/Database/Executor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public protocol Executor {
///
/// This allows Fluent extensions to be written that
/// can support custom querying behavior.
///
/// - note: Passing parameterized values as a `[Node]` array
/// instead of interpolating them into the raw string
/// can help prevent SQL injection.
@discardableResult
func raw(_ raw: String, _ values: [Node]) throws -> Node
}
Expand Down

0 comments on commit 3365a70

Please sign in to comment.