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
    NpgsqlRawCopyStream
    Implements
    IDisposable
    IAsyncDisposable
    Namespace: Npgsql
    Assembly: Npgsql.dll
    Syntax
    public sealed class NpgsqlRawCopyStream : Stream, IDisposable, IAsyncDisposable
    Remarks

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

    Properties

    | Improve this Doc View Source

    CanRead

    Declaration
    public override bool CanRead { get; }
    Property Value
    Type Description
    bool
    Remarks

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

    | Improve this Doc View Source

    CanSeek

    Declaration
    public override bool CanSeek { get; }
    Property Value
    Type Description
    bool
    Remarks

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

    | Improve this Doc View Source

    CanTimeout

    Declaration
    public override bool CanTimeout { get; }
    Property Value
    Type Description
    bool
    Remarks

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

    | Improve this Doc View Source

    CanWrite

    Declaration
    public override bool CanWrite { get; }
    Property Value
    Type Description
    bool
    Remarks

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

    | Improve this Doc View Source

    Length

    Declaration
    public override long Length { get; }
    Property Value
    Type Description
    long
    Remarks

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

    | Improve this Doc View Source

    Position

    Declaration
    public override long Position { get; set; }
    Property Value
    Type Description
    long
    Remarks

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

    | Improve this Doc View Source

    ReadTimeout

    Declaration
    public override int ReadTimeout { get; set; }
    Property Value
    Type Description
    int
    Remarks

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

    | Improve this Doc View Source

    WriteTimeout

    Declaration
    public override int WriteTimeout { get; set; }
    Property Value
    Type Description
    int
    Remarks

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

    Methods

    | Improve this Doc View Source

    Cancel()

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

    Declaration
    public void Cancel()
    Remarks

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

    | Improve this Doc View Source

    CancelAsync()

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

    Declaration
    public Task CancelAsync()
    Returns
    Type Description
    Task
    Remarks

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

    | Improve this Doc View Source

    Dispose(bool)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Remarks

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

    | Improve this Doc View Source

    DisposeAsync()

    Declaration
    public override ValueTask DisposeAsync()
    Returns
    Type Description
    ValueTask
    Remarks

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

    | Improve this Doc View Source

    Flush()

    Declaration
    public override void Flush()
    Remarks

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

    | Improve this Doc View Source

    FlushAsync(CancellationToken)

    Declaration
    public override Task FlushAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    Remarks

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

    | Improve this Doc View Source

    Read(Span<byte>)

    Declaration
    public override int Read(Span<byte> span)
    Parameters
    Type Name Description
    Span<><byte> span
    Returns
    Type Description
    int
    Remarks

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

    | 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
    Type Description
    int
    Remarks

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

    | 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>
    Remarks

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

    | 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>
    Remarks

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

    | 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
    Type Description
    long
    Remarks

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

    | Improve this Doc View Source

    SetLength(long)

    Declaration
    public override void SetLength(long value)
    Parameters
    Type Name Description
    long value
    Remarks

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

    | Improve this Doc View Source

    Write(ReadOnlySpan<byte>)

    Declaration
    public override void Write(ReadOnlySpan<byte> buffer)
    Parameters
    Type Name Description
    ReadOnlySpan<><byte> buffer
    Remarks

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

    | 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
    Remarks

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

    | 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
    Remarks

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

    | 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
    Type Description
    Task
    Remarks

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

    Implements

    IDisposable
    IAsyncDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team