1 # array pq\Statement::desc()
3 Describe the parameters of the prepared statement.
11 * array, list of type OIDs of the substitution parameters.
15 * pq\Exception\InvalidArgumentException
16 * pq\Exception\BadMethodCallException
17 * pq\Exception\RuntimeException
18 * pq\Exception\DomainException
24 $connection = new pq\Connection;
25 $types = new pq\Types($connection);
26 $statement = $connection->prepare("st1",
27 "SELECT \$1, \$2", [pq\Types::XML, pq\Types::JSON]);
28 $description = $statement->desc();
30 foreach($description as $typeOid) {
31 echo $types[$typeOid]->typname, "\n";