C# Class Npgsql.NpgsqlCopySerializer

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

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

Add bool
public AddBool ( bool fieldValue ) : void
fieldValue bool
Résultat void

AddBytes() protected méthode

Add bytes.
protected AddBytes ( byte bytes ) : void
bytes byte
Résultat void

AddDateTime() public méthode

Add DateTime.
public AddDateTime ( System.DateTime fieldValue ) : void
fieldValue System.DateTime
Résultat void

AddInt32() public méthode

add Int32.
public AddInt32 ( Int32 fieldValue ) : void
fieldValue System.Int32
Résultat void

AddInt64() public méthode

Add Int64.
public AddInt64 ( System.Int64 fieldValue ) : void
fieldValue System.Int64
Résultat void

AddNull() public méthode

Add null.
public AddNull ( ) : void
Résultat void

AddNumber() public méthode

Add number.
public AddNumber ( double fieldValue ) : void
fieldValue double
Résultat void

AddString() public méthode

Add string.
public AddString ( String fieldValue ) : void
fieldValue String
Résultat void

Close() public méthode

Close the serializer.
public Close ( ) : void
Résultat void

EndRow() public méthode

End row.
public EndRow ( ) : void
Résultat void

EscapeSequenceFor() protected static méthode

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

FieldAdded() protected méthode

Field added.
protected FieldAdded ( ) : void
Résultat void

Flush() public méthode

Flush buffers.
public Flush ( ) : void
Résultat void

FlushFields() public méthode

Flush fields.
public FlushFields ( ) : void
Résultat void

FlushRows() public méthode

Flush rows.
public FlushRows ( ) : void
Résultat void

MakeRoomForBytes() protected méthode

Make room for bytes.
protected MakeRoomForBytes ( int len ) : void
len int
Résultat void

NpgsqlCopySerializer() public méthode

Constructor.
public NpgsqlCopySerializer ( NpgsqlConnection conn ) : System
conn NpgsqlConnection
Résultat System

PrefixField() protected méthode

Prefix field.
protected PrefixField ( ) : void
Résultat void