Npgsql Api Docs |

# NpgsqlCopyOut Constructor

Creates NpgsqlCommand to run given query upon Start(), after which CopyStream provides data from database as requested in the query.

#### Overload List

Given command is run upon Start(), after which CopyStream provides data from database as requested in the query.

> public NpgsqlCopyOut(NpgsqlCommand,NpgsqlConnection);

Given command is executed upon Start() and all requested copy data is written to toStream immediately.

> public NpgsqlCopyOut(NpgsqlCommand,NpgsqlConnection,Stream);

Creates NpgsqlCommand to run given query upon Start(), after which CopyStream provides data from database as requested in the query.

> public NpgsqlCopyOut(string,NpgsqlConnection);

#### See Also

NpgsqlCopyOut Class | Npgsql Namespace