pq/Cursor docs
[mdref/mdref-pq] / pq / Types / __construct.md
1 # void pq\Types::__construct(pq\Connection $conn[, array $namespaces = NULL)
2
3 Create a new instance populated with information obtained from the `pg_type` relation.
4
5 ## Params:
6
7 * pq\Connection $conn
8 The connection to use.
9 * Optional array $namespaces = NULL
10 Which namespaces to query (defaults to `public` and `pg_catalog`).
11
12 ## Throws:
13
14 * pq\Exception\InvalidArgumentException
15 * pq\Exception\BadMethodCallException
16 * pq\Exception\RuntimeException