File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Sources/StructuredQueriesCore Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,18 @@ extension QueryFragment: ExpressibleByStringInterpolation {
209209 segments. append ( . binding( binding) )
210210 }
211211
212+ /// Append a query representable output to the interpolation.
213+ ///
214+ /// - Parameters:
215+ /// - queryOutput: A query representable output.
216+ /// - representableType: The type of query representation.
217+ public mutating func appendInterpolation< QueryValue: QueryBindable > (
218+ _ queryOutput: QueryValue . QueryOutput ,
219+ as representableType: QueryValue . Type
220+ ) {
221+ appendInterpolation ( QueryValue ( queryOutput: queryOutput) )
222+ }
223+
212224 /// Append a query fragment to the interpolation.
213225 ///
214226 /// - Parameter fragment: A query fragment.
You can’t perform that action at this time.
0 commit comments