Skip to content

Commit be1c2a1

Browse files
committed
Breaking change note for the text import/export APIs
See #6294
1 parent 4847a6a commit be1c2a1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • conceptual/Npgsql/release-notes

conceptual/Npgsql/release-notes/10.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ This is in line with other .NET API (like `NetworkStream.ReadTimeout`), where `T
4848
### `PostgresException.BatchCommand` is `null` by default
4949

5050
This prevents accidental leak of queries and parameters when exceptions are logged. To change this behavior you can set `IncludeFailedBatchedCommand` in connection string to `true`.
51+
52+
### NpgsqlConnection.BeginText{Import,Export}Async now return NpgsqlCopyTextReader instead of TextWriter
53+
54+
The methods to start a text import/export operation have been changed to return a more specific `NpgsqlCopyTextReader`, rather than a general `TextWriter`; this was done since `NpgsqlCopyTextReader` exposes some additional APIs to allow cancelling and setting the timeout on a COPY operation. Since `NpgsqlCopyTextReader` extends `TextWriter`, this is a binary breaking change only - recompiling against the new version of Npgsql should work without any source changes.

0 commit comments

Comments
 (0)