We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BridgeConnection
1 parent 1d0d162 commit 663cd26Copy full SHA for 663cd26
1 file changed
Sources/MySQLBridge/Extensions/MySQLConnection+Bridge.swift
@@ -15,7 +15,15 @@ extension MySQLConnection: BridgeConnection {
15
query(raw).transform(to: ())
16
}
17
18
+ public func query(sql: SwifQLable) -> EventLoopFuture<Void> {
19
+ sql.execute(on: self).transform(to: ())
20
+ }
21
+
22
public func query<V: Decodable>(raw: String, decoding type: V.Type) -> EventLoopFuture<[V]> {
23
query(raw).all(decoding: type)
24
25
26
+ public func query<V>(sql: SwifQLable, decoding type: V.Type) -> EventLoopFuture<[V]> where V : Decodable {
27
+ sql.execute(on: self).all(decoding: type)
28
29
0 commit comments