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