Class NpgsqlRawCopyStream
- Namespace
- Npgsql
- Assembly
- Npgsql.dll
Provides an API for a raw binary COPY operation, a high-performance data import/export mechanism to a PostgreSQL table. Initiated by BeginRawBinaryCopy(string)
public sealed class NpgsqlRawCopyStream : Stream, IAsyncDisposable, IDisposable
- Inheritance
-
NpgsqlRawCopyStream
- Implements
- Inherited Members
Remarks
Properties
CanRead
public override bool CanRead { get; }
Property Value
CanSeek
public override bool CanSeek { get; }
Property Value
CanWrite
public override bool CanWrite { get; }
Property Value
Length
public override long Length { get; }
Property Value
Position
public override long Position { get; set; }
Property Value
Methods
Cancel()
Cancels and terminates an ongoing operation. Any data already written will be discarded.
public void Cancel()
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
Flush()
public override void Flush()
Read(byte[], int, int)
public override int Read(byte[] buffer, int offset, int count)
Parameters
Returns
Seek(long, SeekOrigin)
public override long Seek(long offset, SeekOrigin origin)
Parameters
offset
longorigin
SeekOrigin
Returns
SetLength(long)
public override void SetLength(long value)
Parameters
value
long
Write(byte[], int, int)
public override void Write(byte[] buffer, int offset, int count)