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