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;
105 public $eventHandlers;
106 public $defaultFetchType;
107 public $defaultTransactionIsolation;
108 public $defaultTransactionReadonly;
109 public $defaultTransactionDeferrable;
110 public $defaultAutoConvert;
112 public function __construct($dsn, $async = NULL) {
115 public function reset() {
118 public function resetAsync() {
121 public function poll() {
124 public function exec($query) {
127 public function execAsync($query, $callable = NULL) {
130 public function execParams($query, array $params, array $types = NULL) {
133 public function execParamsAsync($query, array $params, array $types = NULL, $callable = NULL) {
136 public function prepare($name, $query, array $types = NULL) {
139 public function prepareAsync($name, $query, array $types = NULL) {
142 public function declare($name, $flags, $query) {
145 public function declareAsync($name, $flags, $query = NULL) {
148 public function unlisten($channel) {
151 public function unlistenAsync($channel) {
154 public function listen($channel, $callable) {
157 public function listenAsync($channel = NULL, $callable = NULL) {
160 public function notify($channel, $message) {
163 public function notifyAsync($channel, $message) {
166 public function getResult() {
169 public function quote($string) {
172 public function quoteName($type) {
175 public function escapeBytea($bytea) {
178 public function unescapeBytea($bytea) {
181 public function startTransaction($isolation = NULL, $readonly = NULL, $deferrable = NULL) {
184 public function startTransactionAsync($isolation = NULL, $readonly = NULL, $deferrable = NULL) {
187 public function trace($stdio_stream = NULL) {
190 public function off($type) {
193 public function on($type, $callable) {
196 public function setConverter(\pq\Converter
$converter) {
199 public function unsetConverter(\pq\Converter
$converter) {
207 const INSENSITIVE
= 2;
210 const NO_SCROLL
= 32;
215 public function __construct(\pq\Connection
$connection, $name, $flags, $query, $async = NULL) {
218 public function open() {
221 public function close() {
224 public function fetch($spec) {
227 public function move($spec = NULL) {
230 public function fetchAsync($spec = NULL, $callback = NULL) {
233 public function moveAsync($spec = NULL, $callback = NULL) {
238 class DateTime
extends \DateTime
implements \DateTimeInterface
, \JsonSerializable
242 public function __toString() {
245 public function jsonSerialize() {
252 const INVALID_OID
= 0;
261 public function __construct(\pq\Transaction
$transaction, $oid = NULL, $mode = NULL) {
264 public function write($data) {
267 public function read($length = NULL, &$read = NULL) {
270 public function seek($offset, $whence = NULL) {
273 public function tell() {
276 public function truncate($length = NULL) {
281 class Result
implements \Countable
283 const EMPTY_QUERY
= 0;
284 const COMMAND_OK
= 1;
288 const BAD_RESPONSE
= 5;
289 const NONFATAL_ERROR
= 6;
290 const FATAL_ERROR
= 7;
292 const SINGLE_TUPLE
= 9;
293 const FETCH_ARRAY
= 0;
294 const FETCH_ASSOC
= 1;
295 const FETCH_OBJECT
= 2;
298 const CONV_FLOAT
= 4;
299 const CONV_SCALAR
= 15;
300 const CONV_ARRAY
= 16;
301 const CONV_DATETIME
= 32;
302 const CONV_JSON
= 256;
303 const CONV_ALL
= 65535;
306 public $statusMessage;
307 public $errorMessage;
310 public $affectedRows;
314 public function bind($col, &$ref) {
317 public function fetchBound() {
320 public function fetchRow($fetch_type = NULL) {
323 public function fetchCol(&$ref, $col = NULL) {
326 public function fetchAll($fetch_type = NULL) {
329 public function fetchAllCols($col = NULL) {
332 public function count() {
335 public function map($keys = NULL, $vals = NULL, $fetch_type = NULL) {
338 public function desc() {
348 public function __construct(\pq\Connection
$connection, $name, $query, array $types = NULL, $async = NULL) {
351 public function bind($param_no, &$param_ref) {
354 public function exec(array $params = NULL) {
357 public function desc() {
360 public function execAsync(array $params = NULL, $callable = NULL) {
363 public function descAsync($callable) {
370 const READ_COMMITTED
= 0;
371 const REPEATABLE_READ
= 1;
372 const SERIALIZABLE
= 2;
379 public function __construct(\pq\Connection
$connection, $async = NULL, $isolation = NULL, $readonly = NULL, $deferrable = NULL) {
382 public function commit() {
385 public function rollback() {
388 public function commitAsync() {
391 public function rollbackAsync() {
394 public function savepoint() {
397 public function savepointAsync() {
400 public function exportSnapshot() {
403 public function exportSnapshotAsync() {
406 public function importSnapshot($snapshot_id) {
409 public function importSnapshotAsync($snapshot_id) {
412 public function openLOB($oid, $mode = NULL) {
415 public function createLOB($mode = NULL) {
418 public function unlinkLOB($oid) {
421 public function importLOB($local_path, $oid = NULL) {
424 public function exportLOB($oid, $local_path) {
437 const INT2VECTOR
= 22;
445 const OIDVECTOR
= 30;
447 const PG_ATTRIBUTE
= 75;
452 const XMLARRAY
= 143;
453 const JSONARRAY
= 199;
454 const PG_NODE_TREE
= 194;
462 const LINEARRAY
= 629;
467 const TINTERVAL
= 704;
470 const CIRCLEARRAY
= 719;
472 const MONEYARRAY
= 791;
476 const BOOLARRAY
= 1000;
477 const BYTEAARRAY
= 1001;
478 const CHARARRAY
= 1002;
479 const NAMEARRAY
= 1003;
480 const INT2ARRAY
= 1005;
481 const INT2VECTORARRAY
= 1006;
482 const INT4ARRAY
= 1007;
483 const REGPROCARRAY
= 1008;
484 const TEXTARRAY
= 1009;
485 const OIDARRAY
= 1028;
486 const TIDARRAY
= 1010;
487 const XIDARRAY
= 1011;
488 const CIDARRAY
= 1012;
489 const OIDVECTORARRAY
= 1013;
490 const BPCHARARRAY
= 1014;
491 const VARCHARARRAY
= 1015;
492 const INT8ARRAY
= 1016;
493 const POINTARRAY
= 1017;
494 const LSEGARRAY
= 1018;
495 const PATHARRAY
= 1019;
496 const BOXARRAY
= 1020;
497 const FLOAT4ARRAY
= 1021;
498 const FLOAT8ARRAY
= 1022;
499 const ABSTIMEARRAY
= 1023;
500 const RELTIMEARRAY
= 1024;
501 const TINTERVALARRAY
= 1025;
502 const POLYGONARRAY
= 1027;
503 const ACLITEM
= 1033;
504 const ACLITEMARRAY
= 1034;
505 const MACADDRARRAY
= 1040;
506 const INETARRAY
= 1041;
507 const CIDRARRAY
= 651;
508 const CSTRINGARRAY
= 1263;
510 const VARCHAR
= 1043;
513 const TIMESTAMP
= 1114;
514 const TIMESTAMPARRAY
= 1115;
515 const DATEARRAY
= 1182;
516 const TIMEARRAY
= 1183;
517 const TIMESTAMPTZ
= 1184;
518 const TIMESTAMPTZARRAY
= 1185;
519 const INTERVAL
= 1186;
520 const INTERVALARRAY
= 1187;
521 const NUMERICARRAY
= 1231;
523 const TIMETZARRAY
= 1270;
525 const BITARRAY
= 1561;
527 const VARBITARRAY
= 1563;
528 const NUMERIC = 1700;
529 const REFCURSOR
= 1790;
530 const REFCURSORARRAY
= 2201;
531 const REGPROCEDURE
= 2202;
532 const REGOPER
= 2203;
533 const REGOPERATOR
= 2204;
534 const REGCLASS
= 2205;
535 const REGTYPE
= 2206;
536 const REGPROCEDUREARRAY
= 2207;
537 const REGOPERARRAY
= 2208;
538 const REGOPERATORARRAY
= 2209;
539 const REGCLASSARRAY
= 2210;
540 const REGTYPEARRAY
= 2211;
542 const UUIDARRAY
= 2951;
544 const PG_LSNARRAY
= 3221;
545 const TSVECTOR
= 3614;
546 const GTSVECTOR
= 3642;
547 const TSQUERY
= 3615;
548 const REGCONFIG
= 3734;
549 const REGDICTIONARY
= 3769;
550 const TSVECTORARRAY
= 3643;
551 const GTSVECTORARRAY
= 3644;
552 const TSQUERYARRAY
= 3645;
553 const REGCONFIGARRAY
= 3735;
554 const REGDICTIONARYARRAY
= 3770;
556 const JSONBARRAY
= 3807;
557 const TXID_SNAPSHOT
= 2970;
558 const TXID_SNAPSHOTARRAY
= 2949;
559 const INT4RANGE
= 3904;
560 const INT4RANGEARRAY
= 3905;
561 const NUMRANGE
= 3906;
562 const NUMRANGEARRAY
= 3907;
563 const TSRANGE
= 3908;
564 const TSRANGEARRAY
= 3909;
565 const TSTZRANGE
= 3910;
566 const TSTZRANGEARRAY
= 3911;
567 const DATERANGE
= 3912;
568 const DATERANGEARRAY
= 3913;
569 const INT8RANGE
= 3926;
570 const INT8RANGEARRAY
= 3927;
572 const RECORDARRAY
= 2287;
573 const CSTRING
= 2275;
575 const ANYARRAY
= 2277;
577 const TRIGGER
= 2279;
578 const EVENT_TRIGGER
= 3838;
579 const LANGUAGE_HANDLER
= 2280;
580 const INTERNAL
= 2281;
582 const ANYELEMENT
= 2283;
583 const ANYNONARRAY
= 2776;
584 const ANYENUM
= 3500;
585 const FDW_HANDLER
= 3115;
586 const ANYRANGE
= 3831;
590 public function __construct(\pq\Connection
$connection, array $namespaces = NULL) {
593 public function refresh(array $namespaces = NULL) {
599 namespace pq\Exception
602 class BadMethodCallException
extends \BadMethodCallException
implements \pq\Exception
606 class InvalidArgumentException
extends \InvalidArgumentException
implements \pq\Exception
610 class RuntimeException
extends \RuntimeException
implements \pq\Exception
614 class DomainException
extends \DomainException
implements \pq\Exception