Skip to content

Commit d5faabd

Browse files
downgrade Pool<Posgres> copy_in_raw/out_row to take &self
1 parent 83363da commit d5faabd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlx-core/src/postgres/copy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl Pool<Postgres> {
7676
/// [PgCopyIn::finish] or [PgCopyIn::abort] *must* be called when finished or the connection
7777
/// will return an error the next time it is used.
7878
pub async fn copy_in_raw(
79-
&mut self,
79+
&self,
8080
statement: &str,
8181
) -> Result<PgCopyIn<PoolConnection<Postgres>>> {
8282
PgCopyIn::begin(self.acquire().await?, statement).await
@@ -102,7 +102,7 @@ impl Pool<Postgres> {
102102
/// Command examples and accepted formats for `COPY` data are shown here:
103103
/// https://www.postgresql.org/docs/current/sql-copy.html
104104
pub async fn copy_out_raw(
105-
&mut self,
105+
&self,
106106
statement: &str,
107107
) -> Result<BoxStream<'static, Result<Bytes>>> {
108108
pg_begin_copy_out(self.acquire().await?, statement).await

0 commit comments

Comments
 (0)