Search Results for

    Show / Hide Table of Contents

    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
    Object
    MarshalByRefObject
    Stream
    NpgsqlRawCopyStream
    Implements
    IAsyncDisposable
    IDisposable
    Inherited Members
    Stream.Null
    Stream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)
    Stream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)
    Stream.Close()
    Stream.CopyTo(Stream)
    Stream.CopyTo(Stream, Int32)
    Stream.CopyToAsync(Stream)
    Stream.CopyToAsync(Stream, Int32)
    Stream.CopyToAsync(Stream, Int32, CancellationToken)
    Stream.CopyToAsync(Stream, CancellationToken)
    Stream.CreateWaitHandle()
    Stream.Dispose()
    Stream.DisposeAsync()
    Stream.EndRead(IAsyncResult)
    Stream.EndWrite(IAsyncResult)
    Stream.FlushAsync()
    Stream.ObjectInvariant()
    Stream.Read(Span<Byte>)
    Stream.ReadAsync(Byte[], Int32, Int32)
    Stream.ReadAsync(Memory<Byte>, CancellationToken)
    Stream.ReadByte()
    Stream.Synchronized(Stream)
    Stream.Write(ReadOnlySpan<Byte>)
    Stream.WriteAsync(Byte[], Int32, Int32)
    Stream.WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)
    Stream.WriteByte(Byte)
    Stream.CanTimeout
    Stream.ReadTimeout
    Stream.WriteTimeout
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.MemberwiseClone(Boolean)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Npgsql
    Assembly: Npgsql.dll
    Syntax
    public sealed class NpgsqlRawCopyStream : Stream, IAsyncDisposable, IDisposable
    Remarks

    See http://www.postgresql.org/docs/current/static/sql-copy.html.

    Properties

    CanRead

    Declaration
    public override bool CanRead { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    Stream.CanRead

    CanSeek

    Declaration
    public override bool CanSeek { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    Stream.CanSeek

    CanWrite

    Declaration
    public override bool CanWrite { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    Stream.CanWrite

    Length

    Declaration
    public override long Length { get; }
    Property Value
    Type Description
    Int64
    Overrides
    Stream.Length

    Position

    Declaration
    public override long Position { get; set; }
    Property Value
    Type Description
    Int64
    Overrides
    Stream.Position

    Methods

    Cancel()

    Cancels and terminates an ongoing operation. Any data already written will be discarded.

    Declaration
    public void Cancel()

    CancelAsync()

    Cancels and terminates an ongoing operation. Any data already written will be discarded.

    Declaration
    public Task CancelAsync()
    Returns
    Type Description
    Task

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing
    Overrides
    Stream.Dispose(Boolean)

    Flush()

    Declaration
    public override void Flush()
    Overrides
    Stream.Flush()

    FlushAsync(CancellationToken)

    Declaration
    public override Task FlushAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    Overrides
    Stream.FlushAsync(CancellationToken)

    Read(Byte[], Int32, Int32)

    Declaration
    public override int Read(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    Byte[] buffer
    Int32 offset
    Int32 count
    Returns
    Type Description
    Int32
    Overrides
    Stream.Read(Byte[], Int32, Int32)

    ReadAsync(Byte[], Int32, Int32, CancellationToken)

    Declaration
    public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Byte[] buffer
    Int32 offset
    Int32 count
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<Int32>
    Overrides
    Stream.ReadAsync(Byte[], Int32, Int32, CancellationToken)

    Seek(Int64, SeekOrigin)

    Declaration
    public override long Seek(long offset, SeekOrigin origin)
    Parameters
    Type Name Description
    Int64 offset
    SeekOrigin origin
    Returns
    Type Description
    Int64
    Overrides
    Stream.Seek(Int64, SeekOrigin)

    SetLength(Int64)

    Declaration
    public override void SetLength(long value)
    Parameters
    Type Name Description
    Int64 value
    Overrides
    Stream.SetLength(Int64)

    Write(Byte[], Int32, Int32)

    Declaration
    public override void Write(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    Byte[] buffer
    Int32 offset
    Int32 count
    Overrides
    Stream.Write(Byte[], Int32, Int32)

    WriteAsync(Byte[], Int32, Int32, CancellationToken)

    Declaration
    public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Byte[] buffer
    Int32 offset
    Int32 count
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    Overrides
    Stream.WriteAsync(Byte[], Int32, Int32, CancellationToken)

    Implements

    System.IAsyncDisposable
    System.IDisposable
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team