File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ pub trait GenericClient: private::Sealed {
69
69
/// Like `Client::transaction`.
70
70
async fn transaction ( & mut self ) -> Result < Transaction < ' _ > , Error > ;
71
71
72
+ /// Like `Client::batch_execute`.
73
+ async fn batch_execute ( & self , query : & str ) -> Result < ( ) , Error > ;
74
+
72
75
/// Returns a reference to the underlying `Client`.
73
76
fn client ( & self ) -> & Client ;
74
77
}
@@ -149,6 +152,10 @@ impl GenericClient for Client {
149
152
self . transaction ( ) . await
150
153
}
151
154
155
+ async fn batch_execute ( & self , query : & str ) -> Result < ( ) , Error > {
156
+ self . batch_execute ( query) . await
157
+ }
158
+
152
159
fn client ( & self ) -> & Client {
153
160
self
154
161
}
@@ -232,6 +239,10 @@ impl GenericClient for Transaction<'_> {
232
239
self . transaction ( ) . await
233
240
}
234
241
242
+ async fn batch_execute ( & self , query : & str ) -> Result < ( ) , Error > {
243
+ self . batch_execute ( query) . await
244
+ }
245
+
235
246
fn client ( & self ) -> & Client {
236
247
self . client ( )
237
248
}
You can’t perform that action at this time.
0 commit comments