flush
[mdref/mdref-pq-gateway] / pq-gateway / pq / Gateway / Table / __toString.md
1 # string pq\Gateway\Table::__toString()
2
3 Format an identifying postgresql:// URL.
4
5 ## Params:
6
7 None.
8
9 ## Returns:
10
11 * string, the formatted URL.
12
13 ## Example:
14
15 <?php
16
17 echo new pq\Gateway\Table("account",
18 new pq\Connection("application_name='pq-gateway-docs' connect_timeout=10"));
19
20 ?>
21
22 Yields:
23
24 postgresql://mike:@:5432/mike?#account