Class NpgsqlRawCopyStream
Provides an API for a raw binary COPY operation, a high-performance data import/export mechanism to
a PostgreSQL table. Initiated by BeginRawBinaryCopy(string)
Inheritance
NpgsqlRawCopyStream
Implements
IDisposable
IAsyncDisposable
Assembly: Npgsql.dll
Syntax
public sealed class NpgsqlRawCopyStream : Stream, IDisposable, IAsyncDisposable
Properties
|
Improve this Doc
View Source
CanRead
Declaration
public override bool CanRead { get; }
Property Value
|
Improve this Doc
View Source
CanSeek
Declaration
public override bool CanSeek { get; }
Property Value
|
Improve this Doc
View Source
CanTimeout
Declaration
public override bool CanTimeout { get; }
Property Value
|
Improve this Doc
View Source
CanWrite
Declaration
public override bool CanWrite { get; }
Property Value
|
Improve this Doc
View Source
Length
Declaration
public override long Length { get; }
Property Value
|
Improve this Doc
View Source
Position
Declaration
public override long Position { get; set; }
Property Value
|
Improve this Doc
View Source
ReadTimeout
Declaration
public override int ReadTimeout { get; set; }
Property Value
|
Improve this Doc
View Source
WriteTimeout
Declaration
public override int WriteTimeout { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Cancel()
Cancels and terminates an ongoing operation. Any data already written will be discarded.
Declaration
|
Improve this Doc
View Source
CancelAsync()
Cancels and terminates an ongoing operation. Any data already written will be discarded.
Declaration
public Task CancelAsync()
Returns
|
Improve this Doc
View Source
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
|
Improve this Doc
View Source
DisposeAsync()
Declaration
public override ValueTask DisposeAsync()
Returns
Type |
Description |
ValueTask |
|
|
Improve this Doc
View Source
Flush()
Declaration
public override void Flush()
|
Improve this Doc
View Source
FlushAsync(CancellationToken)
Declaration
public override Task FlushAsync(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
|
Improve this Doc
View Source
Read(Span<byte>)
Declaration
public override int Read(Span<byte> span)
Parameters
Type |
Name |
Description |
Span<><byte> |
span |
|
Returns
|
Improve this Doc
View Source
Read(byte[], int, int)
Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
Returns
|
Improve this Doc
View Source
ReadAsync(Memory<byte>, CancellationToken)
Declaration
public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
Memory<><byte> |
buffer |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
ValueTask<><int> |
|
|
Improve this Doc
View Source
ReadAsync(byte[], int, int, CancellationToken)
Declaration
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<><int> |
|
|
Improve this Doc
View Source
Seek(long, SeekOrigin)
Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
Type |
Name |
Description |
long |
offset |
|
SeekOrigin |
origin |
|
Returns
|
Improve this Doc
View Source
SetLength(long)
Declaration
public override void SetLength(long value)
Parameters
Type |
Name |
Description |
long |
value |
|
|
Improve this Doc
View Source
Write(ReadOnlySpan<byte>)
Declaration
public override void Write(ReadOnlySpan<byte> buffer)
Parameters
Type |
Name |
Description |
ReadOnlySpan<><byte> |
buffer |
|
|
Improve this Doc
View Source
Write(byte[], int, int)
Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
|
Improve this Doc
View Source
WriteAsync(ReadOnlyMemory<byte>, CancellationToken)
Declaration
public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
ReadOnlyMemory<><byte> |
buffer |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
ValueTask |
|
|
Improve this Doc
View Source
WriteAsync(byte[], int, int, CancellationToken)
Declaration
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
CancellationToken |
cancellationToken |
|
Returns
Implements
IDisposable
IAsyncDisposable