File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,7 @@ impl Pool<Postgres> {
75
75
/// ### Note
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
- pub async fn copy_in_raw (
79
- & mut self ,
80
- statement : & str ,
81
- ) -> Result < PgCopyIn < PoolConnection < Postgres > > > {
78
+ pub async fn copy_in_raw ( & self , statement : & str ) -> Result < PgCopyIn < PoolConnection < Postgres > > > {
82
79
PgCopyIn :: begin ( self . acquire ( ) . await ?, statement) . await
83
80
}
84
81
@@ -101,10 +98,7 @@ impl Pool<Postgres> {
101
98
///
102
99
/// Command examples and accepted formats for `COPY` data are shown here:
103
100
/// https://www.postgresql.org/docs/current/sql-copy.html
104
- pub async fn copy_out_raw (
105
- & mut self ,
106
- statement : & str ,
107
- ) -> Result < BoxStream < ' static , Result < Bytes > > > {
101
+ pub async fn copy_out_raw ( & self , statement : & str ) -> Result < BoxStream < ' static , Result < Bytes > > > {
108
102
pg_begin_copy_out ( self . acquire ( ) . await ?, statement) . await
109
103
}
110
104
}
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ mod migrate;
26
26
pub use arguments:: { PgArgumentBuffer , PgArguments } ;
27
27
pub use column:: PgColumn ;
28
28
pub use connection:: { PgConnection , PgConnectionInfo } ;
29
+ pub use copy:: PgCopyIn ;
29
30
pub use database:: Postgres ;
30
31
pub use error:: { PgDatabaseError , PgErrorPosition } ;
31
32
pub use listener:: { PgListener , PgNotification } ;
You can’t perform that action at this time.
0 commit comments