Skip to content

Commit 5561e7b

Browse files
committed
Add column_types to copy in statement
1 parent 0c3f3b1 commit 5561e7b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,11 @@ impl<'a> PostgresCopyInStatement<'a> {
15891589
conn.close_statement(self.name.as_slice())
15901590
}
15911591

1592+
/// Returns a slice containing the expected column types.
1593+
pub fn column_types(&self) -> &[PostgresType] {
1594+
self.column_types.as_slice()
1595+
}
1596+
15921597
/// Executes the prepared statement.
15931598
///
15941599
/// Each iterator retuned by the `rows` iterator will be interpreted as

0 commit comments

Comments
 (0)