finished!
[mdref/mdref-pq] / pq / COPY / __construct.md
1 # void pq\COPY::__construct(pq\Connection $conn, string $expression, int $direction[, string $options = NULL])
2
3 Start a COPY operation.
4
5 ## Params:
6
7 * pq\Connection $conn
8 The connection to use for the COPY operation.
9 * string $expression
10 The expression generating the data to copy.
11 * int $direction
12 Data direction (pq\COPY::FROM_STDIN or pq\COPY::TO_STDOUT).
13 * Optional string $options = NULL
14 Any COPY options (see the [official PostgreSQL documentaion](http://www.postgresql.org/docs/current/static/sql-copy.html) for details.