@@ -230,10 +230,6 @@ impl Client {
230
230
/// The `statement` argument can either be a `Statement`, or a raw query string. If the same statement will be
231
231
/// repeatedly executed (perhaps with different query parameters), consider preparing the statement up front
232
232
/// with the `prepare` method.
233
- ///
234
- /// # Panics
235
- ///
236
- /// Panics if the number of parameters provided does not match the number expected.
237
233
pub async fn query < T > (
238
234
& self ,
239
235
statement : & T ,
@@ -258,10 +254,6 @@ impl Client {
258
254
/// The `statement` argument can either be a `Statement`, or a raw query string. If the same statement will be
259
255
/// repeatedly executed (perhaps with different query parameters), consider preparing the statement up front
260
256
/// with the `prepare` method.
261
- ///
262
- /// # Panics
263
- ///
264
- /// Panics if the number of parameters provided does not match the number expected.
265
257
pub async fn query_one < T > (
266
258
& self ,
267
259
statement : & T ,
@@ -295,10 +287,6 @@ impl Client {
295
287
/// The `statement` argument can either be a `Statement`, or a raw query string. If the same statement will be
296
288
/// repeatedly executed (perhaps with different query parameters), consider preparing the statement up front
297
289
/// with the `prepare` method.
298
- ///
299
- /// # Panics
300
- ///
301
- /// Panics if the number of parameters provided does not match the number expected.
302
290
pub async fn query_opt < T > (
303
291
& self ,
304
292
statement : & T ,
@@ -331,10 +319,6 @@ impl Client {
331
319
/// repeatedly executed (perhaps with different query parameters), consider preparing the statement up front
332
320
/// with the `prepare` method.
333
321
///
334
- /// # Panics
335
- ///
336
- /// Panics if the number of parameters provided does not match the number expected.
337
- ///
338
322
/// [`query`]: #method.query
339
323
///
340
324
/// # Examples
@@ -382,10 +366,6 @@ impl Client {
382
366
/// with the `prepare` method.
383
367
///
384
368
/// If the statement does not modify any rows (e.g. `SELECT`), 0 is returned.
385
- ///
386
- /// # Panics
387
- ///
388
- /// Panics if the number of parameters provided does not match the number expected.
389
369
pub async fn execute < T > (
390
370
& self ,
391
371
statement : & T ,
@@ -406,10 +386,6 @@ impl Client {
406
386
/// repeatedly executed (perhaps with different query parameters), consider preparing the statement up front
407
387
/// with the `prepare` method.
408
388
///
409
- /// # Panics
410
- ///
411
- /// Panics if the number of parameters provided does not match the number expected.
412
- ///
413
389
/// [`execute`]: #method.execute
414
390
pub async fn execute_raw < T , P , I > ( & self , statement : & T , params : I ) -> Result < u64 , Error >
415
391
where
@@ -426,10 +402,6 @@ impl Client {
426
402
///
427
403
/// PostgreSQL does not support parameters in `COPY` statements, so this method does not take any. The copy *must*
428
404
/// be explicitly completed via the `Sink::close` or `finish` methods. If it is not, the copy will be aborted.
429
- ///
430
- /// # Panics
431
- ///
432
- /// Panics if the statement contains parameters.
433
405
pub async fn copy_in < T , U > ( & self , statement : & T ) -> Result < CopyInSink < U > , Error >
434
406
where
435
407
T : ?Sized + ToStatement ,
@@ -442,10 +414,6 @@ impl Client {
442
414
/// Executes a `COPY TO STDOUT` statement, returning a stream of the resulting data.
443
415
///
444
416
/// PostgreSQL does not support parameters in `COPY` statements, so this method does not take any.
445
- ///
446
- /// # Panics
447
- ///
448
- /// Panics if the statement contains parameters.
449
417
pub async fn copy_out < T > ( & self , statement : & T ) -> Result < CopyOutStream , Error >
450
418
where
451
419
T : ?Sized + ToStatement ,
0 commit comments