Merge pull request #1 from DaveRandom/fix/statement-descasync-arg
[mdref/mdref-pq] / pq / Connection / reset.md
1 # void pq\Connection::reset()
2
3 Attempt to reset a possibly broken connection to a working state.
4
5 ## Params:
6
7 None.
8
9 ## Throws:
10
11 * pq\Exception\InvalidArgumentException
12 * pq\Exception\BadMethodCallException
13 * pq\Exception\RuntimeException
14
15
16 ## Example:
17
18 <?php
19
20 if ($connection->status != pq\Connection::OK) {
21 $connection->reset();
22 }
23
24 ?>