PgSQL
class PgSQL (View source)
Constants
| ATTR_CONNECT_TIMEOUT |
Connection attribute to set the connection timeout. |
| ATTR_DEFAULT_FETCH_MODE |
Connection attribute to set the default fetch mode. |
| ATTR_AUTOCOMMIT |
Connection attribute to set the auto-commit mode. |
| ATTR_PERSISTENT |
Connection attribute to set persistence of the connection. |
| ATTR_CONNECT_ASYNC |
Connection attribute for setting the connection as asynchronous. |
| ATTR_CONNECT_FORCE_NEW |
Connection attribute for forcing the creation of a new connection. |
| ATTR_REPORT |
Connection attribute to set the default report mode. |
| REPORT_OFF |
Turns reporting off |
| REPORT_ERROR |
Report errors from mysqli function calls |
| REPORT_STRICT |
Throw exception for errors instead of warnings |
| REPORT_INDEX |
Report if no index or bad index was used in a query |
| REPORT_ALL |
Report all errors |
| FETCH_LAZY |
Fetch mode that starts fetching rows only when they are requested. |
| FETCH_ASSOC |
Constant for the fetch mode representing fetching as an associative array |
| FETCH_NUM |
Constant for the fetch mode representing fetching as a numeric array |
| FETCH_BOTH |
Constant for the fetch mode representing fetching as both a numeric and associative array |
| FETCH_OBJ |
Constant for the fetch mode representing fetching as an object |
| FETCH_BOUND |
Fetch mode that requires explicit binding of PHP variables to fetch values. |
| FETCH_COLUMN |
Constant for the fetch mode representing fetching a single column |
| FETCH_CLASS |
Constant for the fetch mode representing fetching into a new instance of a specified class |
| FETCH_INTO |
Constant for the fetch mode representing fetching into an existing object |
Properties
| static protected array | $dataAttribute | Array of data attributes. |
Methods
Retrieves the value of a specific attribute by name or constant.
Sets the value of a specific attribute by name or constant.
Details
static mixed
getAttribute(mixed $name)
Retrieves the value of a specific attribute by name or constant.
static void
setAttribute(mixed $name, mixed $value)
Sets the value of a specific attribute by name or constant.