-
Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathpdo_dbh.stub.php
432 lines (405 loc) · 10.3 KB
/
pdo_dbh.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
<?php
/** @generate-class-entries */
/** @not-serializable */
class PDO
{
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_NULL)
*/
public const PARAM_NULL = 0;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_BOOL)
*/
public const PARAM_BOOL = 5;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_INT)
*/
public const PARAM_INT = 1;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_STR)
*/
public const PARAM_STR = 2;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_LOB)
*/
public const PARAM_LOB = 3;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_STMT)
*/
public const PARAM_STMT = 4;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_INPUT_OUTPUT)
*/
public const PARAM_INPUT_OUTPUT = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_STR_NATL)
*/
public const PARAM_STR_NATL = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_STR_CHAR)
*/
public const PARAM_STR_CHAR = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_EVT_ALLOC)
*/
public const PARAM_EVT_ALLOC = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_EVT_FREE)
*/
public const PARAM_EVT_FREE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_EVT_EXEC_PRE)
*/
public const PARAM_EVT_EXEC_PRE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_EVT_EXEC_POST)
*/
public const PARAM_EVT_EXEC_POST = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_EVT_FETCH_PRE)
*/
public const PARAM_EVT_FETCH_PRE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_EVT_FETCH_POST)
*/
public const PARAM_EVT_FETCH_POST = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_PARAM_EVT_NORMALIZE)
*/
public const PARAM_EVT_NORMALIZE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_USE_DEFAULT)
*/
public const FETCH_DEFAULT = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_LAZY)
*/
public const FETCH_LAZY = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_ASSOC)
*/
public const FETCH_ASSOC = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_NUM)
*/
public const FETCH_NUM = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_BOTH)
*/
public const FETCH_BOTH = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_OBJ)
*/
public const FETCH_OBJ = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_BOUND)
*/
public const FETCH_BOUND = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_COLUMN)
*/
public const FETCH_COLUMN = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_CLASS)
*/
public const FETCH_CLASS = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_INTO)
*/
public const FETCH_INTO = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_FUNC)
*/
public const FETCH_FUNC = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_GROUP)
*/
public const FETCH_GROUP = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_UNIQUE)
*/
public const FETCH_UNIQUE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_KEY_PAIR)
*/
public const FETCH_KEY_PAIR = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_CLASSTYPE)
*/
public const FETCH_CLASSTYPE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_SERIALIZE)
*/
public const FETCH_SERIALIZE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_PROPS_LATE)
*/
public const FETCH_PROPS_LATE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_NAMED)
*/
public const FETCH_NAMED = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_AUTOCOMMIT)
*/
public const ATTR_AUTOCOMMIT = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_PREFETCH)
*/
public const ATTR_PREFETCH = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_TIMEOUT)
*/
public const ATTR_TIMEOUT = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_ERRMODE)
*/
public const ATTR_ERRMODE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_SERVER_VERSION)
*/
public const ATTR_SERVER_VERSION = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_CLIENT_VERSION)
*/
public const ATTR_CLIENT_VERSION = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_SERVER_INFO)
*/
public const ATTR_SERVER_INFO = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_CONNECTION_STATUS)
*/
public const ATTR_CONNECTION_STATUS = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_CASE)
*/
public const ATTR_CASE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_CURSOR_NAME)
*/
public const ATTR_CURSOR_NAME = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_CURSOR)
*/
public const ATTR_CURSOR = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_ORACLE_NULLS)
*/
public const ATTR_ORACLE_NULLS = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_PERSISTENT)
*/
public const ATTR_PERSISTENT = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_STATEMENT_CLASS)
*/
public const ATTR_STATEMENT_CLASS = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_FETCH_TABLE_NAMES)
*/
public const ATTR_FETCH_TABLE_NAMES = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_FETCH_CATALOG_NAMES)
*/
public const ATTR_FETCH_CATALOG_NAMES = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_DRIVER_NAME)
*/
public const ATTR_DRIVER_NAME = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_STRINGIFY_FETCHES)
*/
public const ATTR_STRINGIFY_FETCHES = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_MAX_COLUMN_LEN)
*/
public const ATTR_MAX_COLUMN_LEN = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_EMULATE_PREPARES)
*/
public const ATTR_EMULATE_PREPARES = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_DEFAULT_FETCH_MODE)
*/
public const ATTR_DEFAULT_FETCH_MODE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ATTR_DEFAULT_STR_PARAM)
*/
public const ATTR_DEFAULT_STR_PARAM = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ERRMODE_SILENT)
*/
public const ERRMODE_SILENT = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ERRMODE_WARNING)
*/
public const ERRMODE_WARNING = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_ERRMODE_EXCEPTION)
*/
public const ERRMODE_EXCEPTION = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_CASE_NATURAL)
*/
public const CASE_NATURAL = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_CASE_LOWER)
*/
public const CASE_LOWER = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_CASE_UPPER)
*/
public const CASE_UPPER = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_NULL_NATURAL)
*/
public const NULL_NATURAL = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_NULL_EMPTY_STRING)
*/
public const NULL_EMPTY_STRING = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_NULL_TO_STRING)
*/
public const NULL_TO_STRING = UNKNOWN;
/**
* @var string
* @cvalue PDO_ERR_NONE
*/
public const ERR_NONE = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_ORI_NEXT)
*/
public const FETCH_ORI_NEXT = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_ORI_PRIOR)
*/
public const FETCH_ORI_PRIOR = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_ORI_FIRST)
*/
public const FETCH_ORI_FIRST = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_ORI_LAST)
*/
public const FETCH_ORI_LAST = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_ORI_ABS)
*/
public const FETCH_ORI_ABS = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_FETCH_ORI_REL)
*/
public const FETCH_ORI_REL = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_CURSOR_FWDONLY)
*/
public const CURSOR_FWDONLY = UNKNOWN;
/**
* @var int
* @cvalue LONG_CONST(PDO_CURSOR_SCROLL)
*/
public const CURSOR_SCROLL = UNKNOWN;
public function __construct(string $dsn, ?string $username = null, #[\SensitiveParameter] ?string $password = null, ?array $options = null) {}
/** @tentative-return-type */
public function beginTransaction(): bool {}
/** @tentative-return-type */
public function commit(): bool {}
/** @tentative-return-type */
public function errorCode(): ?string {}
/** @tentative-return-type */
public function errorInfo(): array {}
/** @tentative-return-type */
public function exec(string $statement): int|false {}
/** @tentative-return-type */
public function getAttribute(int $attribute): mixed {}
/** @tentative-return-type */
public static function getAvailableDrivers(): array {}
/** @tentative-return-type */
public function inTransaction(): bool {}
/** @tentative-return-type */
public function lastInsertId(?string $name = null): string|false {}
/** @tentative-return-type */
public function prepare(string $query, array $options = []): PDOStatement|false {}
/** @tentative-return-type */
public function query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false {}
/** @tentative-return-type */
public function quote(string $string, int $type = PDO::PARAM_STR): string|false {}
/** @tentative-return-type */
public function rollBack(): bool {}
/** @tentative-return-type */
public function setAttribute(int $attribute, mixed $value): bool {}
}