8 abstract public function convertTypes();
10 abstract public function convertFromString($data, $type);
12 abstract public function convertToString($data, $type);
20 public function __construct(\pq\Connection
$connection) {
23 public function cancel() {
30 const INVALID_ARGUMENT
= 0;
32 const CONNECTION_FAILED
= 2;
35 const BAD_METHODCALL
= 5;
36 const UNINITIALIZED
= 6;
52 public function __construct(\pq\Connection
$connection, $expression, $direction, $options = NULL) {
55 public function put($data) {
58 public function end($error = NULL) {
61 public function get(&$data) {
72 const AWAITING_RESPONSE
= 4;
74 const SSL_STARTUP
= 7;
77 const TRANS_ACTIVE
= 1;
78 const TRANS_INTRANS
= 2;
79 const TRANS_INERROR
= 3;
80 const TRANS_UNKNOWN
= 4;
81 const POLLING_FAILED
= 0;
82 const POLLING_READING
= 1;
83 const POLLING_WRITING
= 2;
85 const EVENT_NOTICE
= 'notice';
86 const EVENT_RESULT
= 'result';
87 const EVENT_RESET
= 'reset';
92 public $transactionStatus;
104 public $eventHandlers;
105 public $defaultFetchType;
106 public $defaultTransactionIsolation;
107 public $defaultTransactionReadonly;
108 public $defaultTransactionDeferrable;
109 public $defaultAutoConvert;
111 public function __construct($dsn, $async = NULL) {
114 public function reset() {
117 public function resetAsync() {
120 public function poll() {
123 public function exec($query) {
126 public function execAsync($query, $callable = NULL) {
129 public function execParams($query, array $params, array $types = NULL) {
132 public function execParamsAsync($query, array $params, array $types = NULL, $callable = NULL) {
135 public function prepare($name, $query, array $types = NULL) {
138 public function prepareAsync($name, $query, array $types = NULL) {
141 public function declare($name, $flags, $query) {
144 public function declareAsync($name, $flags, $query = NULL) {
147 public function unlisten($channel) {
150 public function unlistenAsync($channel) {
153 public function listen($channel, $callable) {
156 public function listenAsync($channel = NULL, $callable = NULL) {
159 public function notify($channel, $message) {
162 public function notifyAsync($channel, $message) {
165 public function getResult() {
168 public function quote($string) {
171 public function quoteName($type) {
174 public function escapeBytea($bytea) {
177 public function unescapeBytea($bytea) {
180 public function startTransaction($isolation = NULL, $readonly = NULL, $deferrable = NULL) {
183 public function startTransactionAsync($isolation = NULL, $readonly = NULL, $deferrable = NULL) {
186 public function trace($stdio_stream = NULL) {
189 public function off($type) {
192 public function on($type, $callable) {
195 public function setConverter(\pq\Converter
$converter) {
198 public function unsetConverter(\pq\Converter
$converter) {
206 const INSENSITIVE
= 2;
209 const NO_SCROLL
= 32;
214 public function __construct(\pq\Connection
$connection, $name, $flags, $query, $async = NULL) {
217 public function open() {
220 public function close() {
223 public function fetch($spec) {
226 public function move($spec = NULL) {
229 public function fetchAsync($spec = NULL, $callback = NULL) {
232 public function moveAsync($spec = NULL, $callback = NULL) {
237 class DateTime
extends \DateTime
implements \DateTimeInterface
, \JsonSerializable
241 public static function createFromFormat($format, $datetime, $timezone = NULL) {
244 public function __toString() {
247 public function jsonSerialize() {
254 const INVALID_OID
= 0;
263 public function __construct(\pq\Transaction
$transaction, $oid = NULL, $mode = NULL) {
266 public function write($data) {
269 public function read($length = NULL, &$read = NULL) {
272 public function seek($offset, $whence = NULL) {
275 public function tell() {
278 public function truncate($length = NULL) {
283 class Result
implements \Countable
285 const EMPTY_QUERY
= 0;
286 const COMMAND_OK
= 1;
290 const BAD_RESPONSE
= 5;
291 const NONFATAL_ERROR
= 6;
292 const FATAL_ERROR
= 7;
294 const SINGLE_TUPLE
= 9;
295 const FETCH_ARRAY
= 0;
296 const FETCH_ASSOC
= 1;
297 const FETCH_OBJECT
= 2;
300 const CONV_FLOAT
= 4;
301 const CONV_SCALAR
= 15;
302 const CONV_ARRAY
= 16;
303 const CONV_DATETIME
= 32;
304 const CONV_JSON
= 256;
305 const CONV_ALL
= 65535;
308 public $statusMessage;
309 public $errorMessage;
312 public $affectedRows;
316 public function bind($col, &$ref) {
319 public function fetchBound() {
322 public function fetchRow($fetch_type = NULL) {
325 public function fetchCol(&$ref, $col = NULL) {
328 public function fetchAll($fetch_type = NULL) {
331 public function fetchAllCols($col = NULL) {
334 public function count() {
337 public function map($keys = NULL, $vals = NULL, $fetch_type = NULL) {
340 public function desc() {
352 public function __construct(\pq\Connection
$connection, $name, $query, array $types = NULL, $async = NULL) {
355 public function bind($param_no, &$param_ref) {
358 public function deallocate() {
361 public function deallocateAsync() {
364 public function desc() {
367 public function descAsync($callable) {
370 public function exec(array $params = NULL) {
373 public function execAsync(array $params = NULL, $callable = NULL) {
376 public function prepare() {
379 public function prepareAsync() {
386 const READ_COMMITTED
= 0;
387 const REPEATABLE_READ
= 1;
388 const SERIALIZABLE
= 2;
395 public function __construct(\pq\Connection
$connection, $async = NULL, $isolation = NULL, $readonly = NULL, $deferrable = NULL) {
398 public function commit() {
401 public function rollback() {
404 public function commitAsync() {
407 public function rollbackAsync() {
410 public function savepoint() {
413 public function savepointAsync() {
416 public function exportSnapshot() {
419 public function exportSnapshotAsync() {
422 public function importSnapshot($snapshot_id) {
425 public function importSnapshotAsync($snapshot_id) {
428 public function openLOB($oid, $mode = NULL) {
431 public function createLOB($mode = NULL) {
434 public function unlinkLOB($oid) {
437 public function importLOB($local_path, $oid = NULL) {
440 public function exportLOB($oid, $local_path) {
453 const INT2VECTOR
= 22;
461 const OIDVECTOR
= 30;
463 const PG_ATTRIBUTE
= 75;
468 const XMLARRAY
= 143;
469 const JSONARRAY
= 199;
470 const PG_NODE_TREE
= 194;
478 const LINEARRAY
= 629;
483 const TINTERVAL
= 704;
486 const CIRCLEARRAY
= 719;
488 const MONEYARRAY
= 791;
492 const BOOLARRAY
= 1000;
493 const BYTEAARRAY
= 1001;
494 const CHARARRAY
= 1002;
495 const NAMEARRAY
= 1003;
496 const INT2ARRAY
= 1005;
497 const INT2VECTORARRAY
= 1006;
498 const INT4ARRAY
= 1007;
499 const REGPROCARRAY
= 1008;
500 const TEXTARRAY
= 1009;
501 const OIDARRAY
= 1028;
502 const TIDARRAY
= 1010;
503 const XIDARRAY
= 1011;
504 const CIDARRAY
= 1012;
505 const OIDVECTORARRAY
= 1013;
506 const BPCHARARRAY
= 1014;
507 const VARCHARARRAY
= 1015;
508 const INT8ARRAY
= 1016;
509 const POINTARRAY
= 1017;
510 const LSEGARRAY
= 1018;
511 const PATHARRAY
= 1019;
512 const BOXARRAY
= 1020;
513 const FLOAT4ARRAY
= 1021;
514 const FLOAT8ARRAY
= 1022;
515 const ABSTIMEARRAY
= 1023;
516 const RELTIMEARRAY
= 1024;
517 const TINTERVALARRAY
= 1025;
518 const POLYGONARRAY
= 1027;
519 const ACLITEM
= 1033;
520 const ACLITEMARRAY
= 1034;
521 const MACADDRARRAY
= 1040;
522 const INETARRAY
= 1041;
523 const CIDRARRAY
= 651;
524 const CSTRINGARRAY
= 1263;
526 const VARCHAR
= 1043;
529 const TIMESTAMP
= 1114;
530 const TIMESTAMPARRAY
= 1115;
531 const DATEARRAY
= 1182;
532 const TIMEARRAY
= 1183;
533 const TIMESTAMPTZ
= 1184;
534 const TIMESTAMPTZARRAY
= 1185;
535 const INTERVAL
= 1186;
536 const INTERVALARRAY
= 1187;
537 const NUMERICARRAY
= 1231;
539 const TIMETZARRAY
= 1270;
541 const BITARRAY
= 1561;
543 const VARBITARRAY
= 1563;
544 const NUMERIC = 1700;
545 const REFCURSOR
= 1790;
546 const REFCURSORARRAY
= 2201;
547 const REGPROCEDURE
= 2202;
548 const REGOPER
= 2203;
549 const REGOPERATOR
= 2204;
550 const REGCLASS
= 2205;
551 const REGTYPE
= 2206;
552 const REGPROCEDUREARRAY
= 2207;
553 const REGOPERARRAY
= 2208;
554 const REGOPERATORARRAY
= 2209;
555 const REGCLASSARRAY
= 2210;
556 const REGTYPEARRAY
= 2211;
558 const UUIDARRAY
= 2951;
560 const PG_LSNARRAY
= 3221;
561 const TSVECTOR
= 3614;
562 const GTSVECTOR
= 3642;
563 const TSQUERY
= 3615;
564 const REGCONFIG
= 3734;
565 const REGDICTIONARY
= 3769;
566 const TSVECTORARRAY
= 3643;
567 const GTSVECTORARRAY
= 3644;
568 const TSQUERYARRAY
= 3645;
569 const REGCONFIGARRAY
= 3735;
570 const REGDICTIONARYARRAY
= 3770;
572 const JSONBARRAY
= 3807;
573 const TXID_SNAPSHOT
= 2970;
574 const TXID_SNAPSHOTARRAY
= 2949;
575 const INT4RANGE
= 3904;
576 const INT4RANGEARRAY
= 3905;
577 const NUMRANGE
= 3906;
578 const NUMRANGEARRAY
= 3907;
579 const TSRANGE
= 3908;
580 const TSRANGEARRAY
= 3909;
581 const TSTZRANGE
= 3910;
582 const TSTZRANGEARRAY
= 3911;
583 const DATERANGE
= 3912;
584 const DATERANGEARRAY
= 3913;
585 const INT8RANGE
= 3926;
586 const INT8RANGEARRAY
= 3927;
588 const RECORDARRAY
= 2287;
589 const CSTRING
= 2275;
591 const ANYARRAY
= 2277;
593 const TRIGGER
= 2279;
594 const EVENT_TRIGGER
= 3838;
595 const LANGUAGE_HANDLER
= 2280;
596 const INTERNAL
= 2281;
598 const ANYELEMENT
= 2283;
599 const ANYNONARRAY
= 2776;
600 const ANYENUM
= 3500;
601 const FDW_HANDLER
= 3115;
602 const ANYRANGE
= 3831;
606 public function __construct(\pq\Connection
$connection, array $namespaces = NULL) {
609 public function refresh(array $namespaces = NULL) {
615 namespace pq\Exception
618 class BadMethodCallException
extends \BadMethodCallException
implements \pq\Exception
622 class InvalidArgumentException
extends \InvalidArgumentException
implements \pq\Exception
626 class RuntimeException
extends \RuntimeException
implements \pq\Exception
630 class DomainException
extends \DomainException
implements \pq\Exception