File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ impl Pool<Postgres> {
76
76
/// [PgCopyIn::finish] or [PgCopyIn::abort] *must* be called when finished or the connection
77
77
/// will return an error the next time it is used.
78
78
pub async fn copy_in_raw (
79
- & mut self ,
79
+ & self ,
80
80
statement : & str ,
81
81
) -> Result < PgCopyIn < PoolConnection < Postgres > > > {
82
82
PgCopyIn :: begin ( self . acquire ( ) . await ?, statement) . await
@@ -102,7 +102,7 @@ impl Pool<Postgres> {
102
102
/// Command examples and accepted formats for `COPY` data are shown here:
103
103
/// https://www.postgresql.org/docs/current/sql-copy.html
104
104
pub async fn copy_out_raw (
105
- & mut self ,
105
+ & self ,
106
106
statement : & str ,
107
107
) -> Result < BoxStream < ' static , Result < Bytes > > > {
108
108
pg_begin_copy_out ( self . acquire ( ) . await ?, statement) . await
You can’t perform that action at this time.
0 commit comments