Npgsql Api Docs |

# NpgsqlCopyIn Constructor

Creates NpgsqlCommand to run given query upon Start(). Data for the requested COPY IN operation can then be written to CopyData stream followed by a call to End() or Cancel().

#### Overload List

Given command is run upon Start(). Data for the requested COPY IN operation can then be written to CopyData stream followed by a call to End() or Cancel().

> public NpgsqlCopyIn(NpgsqlCommand,NpgsqlConnection);

Given command is executed upon Start() and all data from fromStream is passed to it as copy data.

> public NpgsqlCopyIn(NpgsqlCommand,NpgsqlConnection,Stream);

Creates NpgsqlCommand to run given query upon Start(). Data for the requested COPY IN operation can then be written to CopyData stream followed by a call to End() or Cancel().

> public NpgsqlCopyIn(string,NpgsqlConnection);

#### See Also

NpgsqlCopyIn Class | Npgsql Namespace