C# Class Npgsql.NpgsqlCopySerializer

Writes given objects into a stream for PostgreSQL COPY in default copy format (not CSV or BINARY).
Datei anzeigen Open project: undeadlabs/Npgsql Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddBool ( bool fieldValue ) : void

Add bool

AddDateTime ( System.DateTime fieldValue ) : void

Add DateTime.

AddInt32 ( Int32 fieldValue ) : void

add Int32.

AddInt64 ( System.Int64 fieldValue ) : void

Add Int64.

AddNull ( ) : void

Add null.

AddNumber ( double fieldValue ) : void

Add number.

AddString ( String fieldValue ) : void

Add string.

Close ( ) : void

Close the serializer.

EndRow ( ) : void

End row.

Flush ( ) : void

Flush buffers.

FlushFields ( ) : void

Flush fields.

FlushRows ( ) : void

Flush rows.

NpgsqlCopySerializer ( NpgsqlConnection conn ) : System

Constructor.

Protected Methods

Method Description
AddBytes ( byte bytes ) : void

Add bytes.

EscapeSequenceFor ( char c ) : byte[]

Escape sequence for the given character.

FieldAdded ( ) : void

Field added.

MakeRoomForBytes ( int len ) : void

Make room for bytes.

PrefixField ( ) : void

Prefix field.

Method Details

AddBool() public method

Add bool
public AddBool ( bool fieldValue ) : void
fieldValue bool
return void

AddBytes() protected method

Add bytes.
protected AddBytes ( byte bytes ) : void
bytes byte
return void

AddDateTime() public method

Add DateTime.
public AddDateTime ( System.DateTime fieldValue ) : void
fieldValue System.DateTime
return void

AddInt32() public method

add Int32.
public AddInt32 ( Int32 fieldValue ) : void
fieldValue System.Int32
return void

AddInt64() public method

Add Int64.
public AddInt64 ( System.Int64 fieldValue ) : void
fieldValue System.Int64
return void

AddNull() public method

Add null.
public AddNull ( ) : void
return void

AddNumber() public method

Add number.
public AddNumber ( double fieldValue ) : void
fieldValue double
return void

AddString() public method

Add string.
public AddString ( String fieldValue ) : void
fieldValue String
return void

Close() public method

Close the serializer.
public Close ( ) : void
return void

EndRow() public method

End row.
public EndRow ( ) : void
return void

EscapeSequenceFor() protected static method

Escape sequence for the given character.
protected static EscapeSequenceFor ( char c ) : byte[]
c char
return byte[]

FieldAdded() protected method

Field added.
protected FieldAdded ( ) : void
return void

Flush() public method

Flush buffers.
public Flush ( ) : void
return void

FlushFields() public method

Flush fields.
public FlushFields ( ) : void
return void

FlushRows() public method

Flush rows.
public FlushRows ( ) : void
return void

MakeRoomForBytes() protected method

Make room for bytes.
protected MakeRoomForBytes ( int len ) : void
len int
return void

NpgsqlCopySerializer() public method

Constructor.
public NpgsqlCopySerializer ( NpgsqlConnection conn ) : System
conn NpgsqlConnection
return System

PrefixField() protected method

Prefix field.
protected PrefixField ( ) : void
return void