Npgsql Api Docs

NpgsqlCopyIn Members

NpgsqlCopyIn overview

Public Instance Constructors

NpgsqlCopyIn Overloaded. Initializes a new instance of the NpgsqlCopyIn class.

Public Instance Properties

CopyBufferSize Set before a COPY IN query to define size of internal buffer for reading from given CopyStream.
CopyStream The stream provided by user or generated upon Start(). User may provide a stream to constructor; it is used to pass to server all data read from it. Otherwise, call to Start() sets this to a writable NpgsqlCopyInStream that passes all data written to it to server. In latter case this is only available while the copy operation is active and null otherwise.
FieldCount Returns number of fields expected on each input row if this operation is currently active, otherwise -1
IsActive Returns true if the connection is currently reserved for this operation.
IsBinary Returns true if this operation is currently active and in binary format.
NpgsqlCommand The Command used to execute this copy operation.

Public Instance Methods

Cancel Withdraws an already started copy operation. The operation will fail with given error message. Will do nothing if current operation is not active.
End Called after writing all data to CopyStream to successfully complete this copy operation.
Equals (inherited from Object) 
FieldIsBinary Returns true if this operation is currently active and field at given location is in binary format.
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
Start Command specified upon creation is executed as a non-query. If CopyStream is set upon creation, it will be flushed to server as copy data, and operation will be finished immediately. Otherwise the CopyStream member can be used for writing copy data to server and operation finished with a call to End() or Cancel().
ToString (inherited from Object) 

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

NpgsqlCopyIn Class | Npgsql Namespace