-
Notifications
You must be signed in to change notification settings - Fork 27
/
ibm_db2.stub.php
340 lines (278 loc) · 7.79 KB
/
ibm_db2.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
<?php
/**
* Stub for arginfo in PHP 8
* XXX: How do we represent optionals without defaults?
* @generate-function-entries
* @generate-legacy-arginfo 70000
*/
/**
* @param resource $connection
* @return resource|false
*/
function db2_connect(#[\SensitiveParameter] string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {}
/**
* @param resource $connection
*/
function db2_commit($connection): bool {}
/**
* @param resource $connection
* @return resource|false
*/
function db2_pconnect(#[\SensitiveParameter] string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {}
/**
* @param resource $connection
*/
function db2_autocommit($connection, int $value = UNKNOWN): int|bool {}
/**
* @param resource $stmt
*/
function db2_bind_param($stmt, int $parameter_number, string $variable_name, int $parameter_type = DB2_PARAM_IN, int $data_type = 0, int $precision = -1, int $scale = 0): bool {}
/**
* @param resource $connection
*/
function db2_close($connection): bool {}
#ifdef PASE
/**
* @param resource $connection
*/
function db2_pclose($connection): bool {}
#endif
/**
* @param resource $connection
* @return resource
*/
function db2_column_privileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null, ?string $column_name = null) {}
/**
* @param resource $connection
* @return resource
* @alias db2_column_privileges
*/
function db2_columnprivileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null, ?string $column_name = null) {}
/**
* @param resource $connection
* @return resource
*/
function db2_columns($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null, ?string $column_name = null) {}
/**
* @param resource $connection
* @return resource
*/
function db2_foreign_keys($connection, ?string $qualifier, ?string $schema, string $table_name) {}
/**
* @param resource $connection
* @return resource
* @alias db2_foreign_keys
*/
function db2_foreignkeys($connection, ?string $qualifier, ?string $schema, string $table_name) {}
/**
* @param resource $connection
* @return resource
*/
function db2_primary_keys($connection, ?string $qualifier, ?string $schema, string $table_name) {}
/**
* @param resource $connection
* @return resource
* @alias db2_primary_keys
*/
function db2_primarykeys($connection, ?string $qualifier, ?string $schema, string $table_name) {}
/**
* @param resource $connection
* @return resource
*/
function db2_procedure_columns($connection, ?string $qualifier, string $schema, string $procedure, ?string $parameter) {}
/**
* @param resource $connection
* @return resource
* @alias db2_procedure_columns
*/
function db2_procedurecolumns($connection, ?string $qualifier, string $schema, string $procedure, ?string $parameter) {}
/**
* @param resource $connection
* @return resource
*/
function db2_procedures($connection, ?string $qualifier, string $schema, string $procedure) {}
/**
* @param resource $connection
* @return resource
*/
function db2_special_columns($connection, ?string $qualifier, string $schema, string $table_name, int $scope) {}
/**
* @param resource $connection
* @return resource
* @alias db2_special_columns
*/
function db2_specialcolumns($connection, ?string $qualifier, string $schema, string $table_name, int $scope) {}
/**
* @param resource $connection
* @return resource
*/
function db2_statistics($connection, ?string $qualifier, ?string $schema, string $table_name, bool $unique) {}
/**
* @param resource $connection
* @return resource
*/
function db2_table_privileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null) {}
/**
* @param resource $connection
* @return resource
* @alias db2_table_privileges
*/
function db2_tableprivileges($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null) {}
/**
* @param resource $connection
* @return resource
*/
function db2_tables($connection, ?string $qualifier = null, ?string $schema = null, ?string $table_name = null, ?string $table_type = null) {}
/**
* @param resource $connection
* @return resource|false
*/
function db2_exec($connection, string $statement, array $options = []) {}
/**
* @param resource $connection
* @return resource|false
*/
function db2_prepare($connection, string $statement, array $options = []) {}
/**
* @param resource $stmt
*/
function db2_execute($stmt, array $parameters = []): bool {}
#ifndef PASE
/* XXX: Not documented and not supported on PASE. */
/**
* @param resource $stmt
*/
function db2_execute_many($stmt, array $options = []): int|false {}
#endif
/**
* @param resource|null $stmt
*/
function db2_stmt_errormsg($stmt = null): string {}
/**
* @param resource|null $stmt
*/
function db2_stmt_error($stmt = null): string {}
/**
* @param resource|null $connection
*/
function db2_conn_errormsg($connection = null): string {}
/**
* @param resource|null $connection
*/
function db2_conn_error($connection = null): string {}
/**
* @param resource $stmt
* @return resource|false
*/
function db2_next_result($stmt) {}
/**
* @param resource $stmt
*/
function db2_num_fields($stmt): int|false {}
/**
* @param resource $stmt
*/
function db2_num_rows($stmt): int|false {}
/**
* @param resource $stmt
*/
function db2_field_name($stmt, int|string $column): string|false {}
/**
* @param resource $stmt
*/
function db2_field_display_size($stmt, int|string $column): int|false {}
/**
* @param resource $stmt
*/
function db2_field_num($stmt, int|string $column): int|false {}
/**
* @param resource $stmt
*/
function db2_field_precision($stmt, int|string $column): int|false {}
/**
* @param resource $stmt
*/
function db2_field_scale($stmt, int|string $column): int|false {}
/**
* @param resource $stmt
*/
function db2_field_type($stmt, int|string $column): string|false {}
/**
* @param resource $stmt
*/
function db2_field_width($stmt, int|string $column): int|false {}
/**
* @param resource $stmt
*/
function db2_cursor_type($stmt): int {}
/**
* @param resource $connection
*/
function db2_rollback($connection): bool {}
/**
* @param resource $stmt
*/
function db2_free_stmt($stmt): bool {}
/**
* @param resource $stmt
*/
function db2_result($stmt, int|string $column): mixed|null {}
/**
* @param resource $stmt
*/
function db2_fetch_row($stmt, int $row_number = -1): bool {}
/**
* @param resource $stmt
*/
function db2_fetch_assoc($stmt, int $row_number = -1): array|false {}
/**
* @param resource $stmt
*/
function db2_fetch_array($stmt, int $row_number = -1): array|false {}
/**
* @param resource $stmt
*/
function db2_fetch_both($stmt, int $row_number = -1): array|false {}
/**
* @param resource $stmt
*/
function db2_fetch_object($stmt, int $row_number = -1): \stdClass|false {}
/**
* @param resource $stmt
*/
function db2_free_result($stmt): bool {}
/**
* @param resource $resource
*/
function db2_set_option($resource, array $options, int $type): bool {}
/**
* @param resource $resource
* @alias db2_set_option
*/
function db2_setoption($resource, array $options, int $type): bool {}
/**
* @param resource $connection
*/
function db2_client_info($connection): \stdClass|false {}
/**
* @param resource $connection
*/
function db2_server_info($connection): \stdClass|false {}
function db2_escape_string(string $string_literal): string {}
/**
* @param resource $stmt
*/
function db2_lob_read($stmt, int $colnum, int $length): string|false {}
/**
* @param resource $resource
*/
function db2_get_option($resource, string $option): string|false {}
/**
* @param resource $resource
* @alias db2_get_option
*/
function db2_getoption($resource, string $option): string|false {}
/**
* @param resource $resource
*/
function db2_last_insert_id($resource): ?string {}