php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
pdo_dbh.stub.php
Go to the documentation of this file.
1<?php
2
4
6class PDO
7{
9 public const int PARAM_NULL = 0;
11 public const int PARAM_BOOL = 5;
13 public const int PARAM_INT = 1;
15 public const int PARAM_STR = 2;
17 public const int PARAM_LOB = 3;
19 public const int PARAM_STMT = 4;
21 public const int PARAM_INPUT_OUTPUT = UNKNOWN;
23 public const int PARAM_STR_NATL = UNKNOWN;
25 public const int PARAM_STR_CHAR = UNKNOWN;
26
28 public const int PARAM_EVT_ALLOC = UNKNOWN;
30 public const int PARAM_EVT_FREE = UNKNOWN;
32 public const int PARAM_EVT_EXEC_PRE = UNKNOWN;
34 public const int PARAM_EVT_EXEC_POST = UNKNOWN;
36 public const int PARAM_EVT_FETCH_PRE = UNKNOWN;
38 public const int PARAM_EVT_FETCH_POST = UNKNOWN;
40 public const int PARAM_EVT_NORMALIZE = UNKNOWN;
41
43 public const int FETCH_DEFAULT = UNKNOWN;
45 public const int FETCH_LAZY = UNKNOWN;
47 public const int FETCH_ASSOC = UNKNOWN;
49 public const int FETCH_NUM = UNKNOWN;
51 public const int FETCH_BOTH = UNKNOWN;
53 public const int FETCH_OBJ = UNKNOWN;
55 public const int FETCH_BOUND = UNKNOWN;
57 public const int FETCH_COLUMN = UNKNOWN;
59 public const int FETCH_CLASS = UNKNOWN;
61 public const int FETCH_INTO = UNKNOWN;
63 public const int FETCH_FUNC = UNKNOWN;
65 public const int FETCH_GROUP = UNKNOWN;
67 public const int FETCH_UNIQUE = UNKNOWN;
69 public const int FETCH_KEY_PAIR = UNKNOWN;
71 public const int FETCH_CLASSTYPE = UNKNOWN;
72
74 public const int FETCH_SERIALIZE = UNKNOWN;
76 public const int FETCH_PROPS_LATE = UNKNOWN;
78 public const int FETCH_NAMED = UNKNOWN;
79
81 public const int ATTR_AUTOCOMMIT = UNKNOWN;
83 public const int ATTR_PREFETCH = UNKNOWN;
85 public const int ATTR_TIMEOUT = UNKNOWN;
87 public const int ATTR_ERRMODE = UNKNOWN;
89 public const int ATTR_SERVER_VERSION = UNKNOWN;
91 public const int ATTR_CLIENT_VERSION = UNKNOWN;
93 public const int ATTR_SERVER_INFO = UNKNOWN;
95 public const int ATTR_CONNECTION_STATUS = UNKNOWN;
97 public const int ATTR_CASE = UNKNOWN;
99 public const int ATTR_CURSOR_NAME = UNKNOWN;
101 public const int ATTR_CURSOR = UNKNOWN;
103 public const int ATTR_ORACLE_NULLS = UNKNOWN;
105 public const int ATTR_PERSISTENT = UNKNOWN;
107 public const int ATTR_STATEMENT_CLASS = UNKNOWN;
109 public const int ATTR_FETCH_TABLE_NAMES = UNKNOWN;
111 public const int ATTR_FETCH_CATALOG_NAMES = UNKNOWN;
113 public const int ATTR_DRIVER_NAME = UNKNOWN;
115 public const int ATTR_STRINGIFY_FETCHES = UNKNOWN;
117 public const int ATTR_MAX_COLUMN_LEN = UNKNOWN;
119 public const int ATTR_EMULATE_PREPARES = UNKNOWN;
121 public const int ATTR_DEFAULT_FETCH_MODE = UNKNOWN;
123 public const int ATTR_DEFAULT_STR_PARAM = UNKNOWN;
124
126 public const int ERRMODE_SILENT = UNKNOWN;
128 public const int ERRMODE_WARNING = UNKNOWN;
130 public const int ERRMODE_EXCEPTION = UNKNOWN;
131
133 public const int CASE_NATURAL = UNKNOWN;
135 public const int CASE_LOWER = UNKNOWN;
137 public const int CASE_UPPER = UNKNOWN;
138
140 public const int NULL_NATURAL = UNKNOWN;
142 public const int NULL_EMPTY_STRING = UNKNOWN;
144 public const int NULL_TO_STRING = UNKNOWN;
145
147 public const string ERR_NONE = UNKNOWN;
148
150 public const int FETCH_ORI_NEXT = UNKNOWN;
152 public const int FETCH_ORI_PRIOR = UNKNOWN;
154 public const int FETCH_ORI_FIRST = UNKNOWN;
156 public const int FETCH_ORI_LAST = UNKNOWN;
158 public const int FETCH_ORI_ABS = UNKNOWN;
160 public const int FETCH_ORI_REL = UNKNOWN;
161
163 public const int CURSOR_FWDONLY = UNKNOWN;
165 public const int CURSOR_SCROLL = UNKNOWN;
166
167 public function __construct(string $dsn, ?string $username = null, #[\SensitiveParameter] ?string $password = null, ?array $options = null) {}
168
169 public static function connect(
170 string $dsn,
171 ?string $username = null,
172 #[\SensitiveParameter] ?string $password = null,
173 ?array $options = null
174 ): static {}
175
177 public function beginTransaction(): bool {}
178
180 public function commit(): bool {}
181
183 public function errorCode(): ?string {}
184
186 public function errorInfo(): array {}
187
189 public function exec(string $statement): int|false {}
190
192 public function getAttribute(int $attribute): mixed {}
193
195 public static function getAvailableDrivers(): array {}
196
198 public function inTransaction(): bool {}
199
201 public function lastInsertId(?string $name = null): string|false {}
202
204 public function prepare(string $query, array $options = []): PDOStatement|false {}
205
207 public function query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false {}
208
210 public function quote(string $string, int $type = PDO::PARAM_STR): string|false {}
211
213 public function rollBack(): bool {}
214
216 public function setAttribute(int $attribute, mixed $value): bool {}
217}
const int ATTR_DRIVER_NAME
const int ATTR_TIMEOUT
const int FETCH_ORI_REL
const int PARAM_STR
query(string $query, ?int $fetchMode=null, mixed ... $fetchModeArgs)
const int ERRMODE_SILENT
const int ATTR_MAX_COLUMN_LEN
const int FETCH_FUNC
const int ATTR_CASE
const int ATTR_FETCH_TABLE_NAMES
static getAvailableDrivers()
const int FETCH_PROPS_LATE
const int FETCH_UNIQUE
inTransaction()
__construct(string $dsn, ?string $username=null, #[\SensitiveParameter] ?string $password=null, ?array $options=null)
const int CASE_UPPER
const int ATTR_ERRMODE
exec(string $statement)
setAttribute(int $attribute, mixed $value)
const int FETCH_BOTH
const int ATTR_CLIENT_VERSION
const int FETCH_ASSOC
const int ATTR_SERVER_INFO
const int NULL_EMPTY_STRING
const int ATTR_STRINGIFY_FETCHES
const int ATTR_AUTOCOMMIT
const int ERRMODE_EXCEPTION
const int FETCH_DEFAULT
const int FETCH_ORI_NEXT
const int PARAM_EVT_FREE
const int PARAM_LOB
beginTransaction()
const int PARAM_EVT_NORMALIZE
const int ATTR_STATEMENT_CLASS
const int PARAM_EVT_EXEC_POST
const int CURSOR_SCROLL
const int ATTR_SERVER_VERSION
const int FETCH_ORI_LAST
const int ATTR_PREFETCH
lastInsertId(?string $name=null)
getAttribute(int $attribute)
const int NULL_TO_STRING
errorCode()
const int FETCH_NUM
const int FETCH_INTO
errorInfo()
const int ATTR_DEFAULT_STR_PARAM
static connect(string $dsn, ?string $username=null, #[\SensitiveParameter] ?string $password=null, ?array $options=null)
const int FETCH_ORI_ABS
const int PARAM_STR_CHAR
const int ATTR_ORACLE_NULLS
const int ATTR_PERSISTENT
const int PARAM_EVT_FETCH_POST
const int ATTR_EMULATE_PREPARES
const int ATTR_DEFAULT_FETCH_MODE
const int PARAM_BOOL
const int FETCH_SERIALIZE
quote(string $string, int $type=PDO::PARAM_STR)
const int PARAM_EVT_ALLOC
const int FETCH_COLUMN
const int ATTR_FETCH_CATALOG_NAMES
const int PARAM_INPUT_OUTPUT
const int ATTR_CURSOR
const int FETCH_CLASS
const int FETCH_BOUND
const int PARAM_STMT
const int CASE_LOWER
const int PARAM_NULL
const int CURSOR_FWDONLY
const int FETCH_CLASSTYPE
const int FETCH_ORI_PRIOR
const int PARAM_INT
const int ERRMODE_WARNING
const int PARAM_EVT_EXEC_PRE
prepare(string $query, array $options=[])
const int FETCH_NAMED
const int FETCH_OBJ
const string ERR_NONE
const int PARAM_STR_NATL
const int FETCH_LAZY
const int ATTR_CURSOR_NAME
const int FETCH_ORI_FIRST
const int FETCH_KEY_PAIR
const int NULL_NATURAL
const int PARAM_EVT_FETCH_PRE
const int CASE_NATURAL
const int FETCH_GROUP
const int ATTR_CONNECTION_STATUS
if(PHP_SAPI !='cli') if($argc< 1) $options
Definition ext_skel.php:376
function(EX_VAR(opline->result.var))