forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ibm_db2.php
1856 lines (1777 loc) · 59.7 KB
/
ibm_db2.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
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
// Start of ibm_db2 v.1.6.0
/**
* Returns a connection to a database
* @link https://php.net/manual/en/function.db2-connect.php
* @param string $database <p>
* For a cataloged connection to a database, database
* represents the database alias in the DB2 client catalog.
* </p>
* <p>
* For an uncataloged connection to a database,
* database represents a complete connection
* string in the following format:
* DATABASE=database;HOSTNAME=hostname;PORT=port;PROTOCOL=TCPIP;UID=username;PWD=password;
* where the parameters represent the following values:
* database
* <p>
* The name of the database.
* </p>
* @param string $username <p>
* The username with which you are connecting to the database.
* </p>
* <p>
* For uncataloged connections, you must pass a &null; value or empty
* string.
* </p>
* @param string $password <p>
* The password with which you are connecting to the database.
* </p>
* <p>
* For uncataloged connections, you must pass a &null; value or empty
* string.
* </p>
* @param array $options <p>
* An associative array of connection options that affect the behavior
* of the connection, where valid array keys include:
* autocommit
* <p>
* Passing the DB2_AUTOCOMMIT_ON value turns
* autocommit on for this connection handle.
* </p>
* <p>
* Passing the DB2_AUTOCOMMIT_OFF value turns
* autocommit off for this connection handle.
* </p>
* @return resource|false A connection handle resource if the connection attempt is
* successful. If the connection attempt fails, db2_connect
* returns false.
*/
function db2_connect ($database, $username, $password, array $options = null) {}
/**
* Commits a transaction
* @link https://php.net/manual/en/function.db2-commit.php
* @param resource $connection <p>
* A valid database connection resource variable as returned from
* db2_connect or db2_pconnect.
* </p>
* @return bool true on success or false on failure.
*/
function db2_commit ($connection) {}
/**
* Returns a persistent connection to a database
* @link https://php.net/manual/en/function.db2-pconnect.php
* @param string $database <p>
* The database alias in the DB2 client catalog.
* </p>
* @param string $username <p>
* The username with which you are connecting to the database.
* </p>
* @param string $password <p>
* The password with which you are connecting to the database.
* </p>
* @param array $options <p>
* An associative array of connection options that affect the behavior
* of the connection, where valid array keys include:
* autocommit
* <p>
* Passing the DB2_AUTOCOMMIT_ON value turns
* autocommit on for this connection handle.
* </p>
* <p>
* Passing the DB2_AUTOCOMMIT_OFF value turns
* autocommit off for this connection handle.
* </p>
* @return resource|false A connection handle resource if the connection attempt is
* successful. db2_pconnect tries to reuse an existing
* connection resource that exactly matches the
* database, username, and
* password parameters. If the connection attempt fails,
* db2_pconnect returns false.
*/
function db2_pconnect ($database, $username, $password, array $options = null) {}
/**
* Returns or sets the AUTOCOMMIT state for a database connection
* @link https://php.net/manual/en/function.db2-autocommit.php
* @param resource $connection <p>
* A valid database connection resource variable as returned from
* db2_connect or db2_pconnect.
* </p>
* @param int $value <p>
* One of the following constants:
* DB2_AUTOCOMMIT_OFF
* <p>
* Turns AUTOCOMMIT off.
* </p>
* @return mixed When db2_autocommit receives only the
* connection parameter, it returns the current state
* of AUTOCOMMIT for the requested connection as an integer value. A value of
* 0 indicates that AUTOCOMMIT is off, while a value of 1 indicates that
* AUTOCOMMIT is on.
* </p>
* <p>
* When db2_autocommit receives both the
* connection parameter and
* autocommit parameter, it attempts to set the
* AUTOCOMMIT state of the requested connection to the corresponding state.
* true on success or false on failure.
*/
function db2_autocommit ($connection, $value = null) {}
/**
* Binds a PHP variable to an SQL statement parameter
* @link https://php.net/manual/en/function.db2-bind-param.php
* @param resource $stmt <p>
* A prepared statement returned from db2_prepare.
* </p>
* @param int $parameter_number
* @param string $variable_name
* @param int $parameter_type
* @param int $data_type
* @param int $precision <p>
* Specifies the precision with which the variable should be bound to the
* database. This parameter can also be used for retrieving XML output values
* from stored procedures. A non-negative value specifies the maximum size of
* the XML data that will be retrieved from the database. If this parameter
* is not used, a default of 1MB will be assumed for retrieving the XML
* output value from the stored procedure.
* </p>
* @param int $scale <p>
* Specifies the scale with which the variable should be bound to the
* database.
* </p>
* @return bool true on success or false on failure.
*/
function db2_bind_param ($stmt, $parameter_number, $variable_name, $parameter_type = null, $data_type = null, $precision = null, $scale = null) {}
/**
* Closes a database connection
* @link https://php.net/manual/en/function.db2-close.php
* @param resource $connection <p>
* Specifies an active DB2 client connection.
* </p>
* @return bool true on success or false on failure.
*/
function db2_close ($connection) {}
/**
* Returns a result set listing the columns and associated privileges for a table
* @link https://php.net/manual/en/function.db2-column-privileges.php
* @param resource $connection <p>
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
* </p>
* @param string $qualifier <p>
* A qualifier for DB2 databases running on OS/390 or z/OS servers. For
* other databases, pass &null; or an empty string.
* </p>
* @param string $schema <p>
* The schema which contains the tables. To match all schemas, pass &null;
* or an empty string.
* </p>
* @param string $table_name
* @param string $column_name
* @return resource|false a statement resource with a result set containing rows describing
* the column privileges for columns matching the specified parameters. The
* rows are composed of the following columns:
* <tr valign="top">
* <td>Column name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>TABLE_CAT</td>
* <td>Name of the catalog. The value is NULL if this table does not
* have catalogs.</td>
* </tr>
* <tr valign="top">
* <td>TABLE_SCHEM</td>
* <td>Name of the schema.</td>
* </tr>
* <tr valign="top">
* <td>TABLE_NAME</td>
* <td>Name of the table or view.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_NAME</td>
* <td>Name of the column.</td>
* </tr>
* <tr valign="top">
* <td>GRANTOR</td>
* <td>Authorization ID of the user who granted the privilege.</td>
* </tr>
* <tr valign="top">
* <td>GRANTEE</td>
* <td>Authorization ID of the user to whom the privilege was
* granted.</td>
* </tr>
* <tr valign="top">
* <td>PRIVILEGE</td>
* <td>The privilege for the column.</td>
* </tr>
* <tr valign="top">
* <td>IS_GRANTABLE</td>
* <td>Whether the GRANTEE is permitted to grant this privilege to
* other users.</td>
* </tr>
*/
function db2_column_privileges ($connection, $qualifier = null, $schema = null, $table_name = null, $column_name = null) {}
function db2_columnprivileges () {}
/**
* Returns a result set listing the columns and associated metadata for a table
* @link https://php.net/manual/en/function.db2-columns.php
* @param resource $connection <p>
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
* </p>
* @param string $qualifier <p>
* A qualifier for DB2 databases running on OS/390 or z/OS servers. For
* other databases, pass &null; or an empty string.
* </p>
* @param string $schema <p>
* The schema which contains the tables. To match all schemas, pass
* '%'.
* </p>
* @param string $table_name
* @param string $column_name
* @return resource|false A statement resource with a result set containing rows describing
* the columns matching the specified parameters. The rows are composed of
* the following columns:
* <tr valign="top">
* <td>Column name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>TABLE_CAT</td>
* <td>Name of the catalog. The value is NULL if this table does not
* have catalogs.</td>
* </tr>
* <tr valign="top">
* <td>TABLE_SCHEM</td>
* <td>Name of the schema.</td>
* </tr>
* <tr valign="top">
* <td>TABLE_NAME</td>
* <td>Name of the table or view.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_NAME</td>
* <td>Name of the column.</td>
* </tr>
* <tr valign="top">
* <td>DATA_TYPE</td>
* <td>The SQL data type for the column represented as an integer value.</td>
* </tr>
* <tr valign="top">
* <td>TYPE_NAME</td>
* <td>A string representing the data type for the column.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_SIZE</td>
* <td>An integer value representing the size of the column.</td>
* </tr>
* <tr valign="top">
* <td>BUFFER_LENGTH</td>
* <td>
* Maximum number of bytes necessary to store data from this column.
* </td>
* </tr>
* <tr valign="top">
* <td>DECIMAL_DIGITS</td>
* <td>
* The scale of the column, or &null; where scale is not applicable.
* </td>
* </tr>
* <tr valign="top">
* <td>NUM_PREC_RADIX</td>
* <td>
* An integer value of either 10 (representing
* an exact numeric data type), 2 (representing an
* approximate numeric data type), or &null; (representing a data type for
* which radix is not applicable).
* </td>
* </tr>
* <tr valign="top">
* <td>NULLABLE</td>
* <td>An integer value representing whether the column is nullable or
* not.</td>
* </tr>
* <tr valign="top">
* <td>REMARKS</td>
* <td>Description of the column.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_DEF</td>
* <td>Default value for the column.</td>
* </tr>
* <tr valign="top">
* <td>SQL_DATA_TYPE</td>
* <td>An integer value representing the size of the column.</td>
* </tr>
* <tr valign="top">
* <td>SQL_DATETIME_SUB</td>
* <td>
* Returns an integer value representing a datetime subtype code,
* or &null; for SQL data types to which this does not apply.
* </td>
* </tr>
* <tr valign="top">
* <td>CHAR_OCTET_LENGTH</td>
* <td>
* Maximum length in octets for a character data type column, which
* matches COLUMN_SIZE for single-byte character set data, or &null; for
* non-character data types.
* </td>
* </tr>
* <tr valign="top">
* <td>ORDINAL_POSITION</td>
* <td>The 1-indexed position of the column in the table.</td>
* </tr>
* <tr valign="top">
* <td>IS_NULLABLE</td>
* <td>
* A string value where 'YES' means that the column is nullable and
* 'NO' means that the column is not nullable.
* </td>
* </tr>
*/
function db2_columns ($connection, $qualifier = null, $schema = null, $table_name = null, $column_name = null) {}
/**
* Returns a result set listing the foreign keys for a table
* @link https://php.net/manual/en/function.db2-foreign-keys.php
* @param resource $connection <p>
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
* </p>
* @param string $qualifier <p>
* A qualifier for DB2 databases running on OS/390 or z/OS servers. For
* other databases, pass &null; or an empty string.
* </p>
* @param string $schema <p>
* The schema which contains the tables. If schema
* is &null;, db2_foreign_keys matches the schema for
* the current connection.
* </p>
* @param string $table_name
* @return resource|false A statement resource with a result set containing rows describing
* the foreign keys for the specified table. The result set is composed of the
* following columns:
* <tr valign="top">
* <td>Column name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>PKTABLE_CAT</td>
* <td>
* Name of the catalog for the table containing the primary key. The
* value is NULL if this table does not have catalogs.
* </td>
* </tr>
* <tr valign="top">
* <td>PKTABLE_SCHEM</td>
* <td>
* Name of the schema for the table containing the primary key.
* </td>
* </tr>
* <tr valign="top">
* <td>PKTABLE_NAME</td>
* <td>Name of the table containing the primary key.</td>
* </tr>
* <tr valign="top">
* <td>PKCOLUMN_NAME</td>
* <td>Name of the column containing the primary key.</td>
* </tr>
* <tr valign="top">
* <td>FKTABLE_CAT</td>
* <td>
* Name of the catalog for the table containing the foreign key. The
* value is NULL if this table does not have catalogs.
* </td>
* </tr>
* <tr valign="top">
* <td>FKTABLE_SCHEM</td>
* <td>
* Name of the schema for the table containing the foreign key.
* </td>
* </tr>
* <tr valign="top">
* <td>FKTABLE_NAME</td>
* <td>Name of the table containing the foreign key.</td>
* </tr>
* <tr valign="top">
* <td>FKCOLUMN_NAME</td>
* <td>Name of the column containing the foreign key.</td>
* </tr>
* <tr valign="top">
* <td>KEY_SEQ</td>
* <td>1-indexed position of the column in the key.</td>
* </tr>
* <tr valign="top">
* <td>UPDATE_RULE</td>
* <td>
* Integer value representing the action applied to the foreign key
* when the SQL operation is UPDATE.
* </td>
* </tr>
* <tr valign="top">
* <td>DELETE_RULE</td>
* <td>
* Integer value representing the action applied to the foreign key
* when the SQL operation is DELETE.
* </td>
* </tr>
* <tr valign="top">
* <td>FK_NAME</td>
* <td>The name of the foreign key.</td>
* </tr>
* <tr valign="top">
* <td>PK_NAME</td>
* <td>The name of the primary key.</td>
* </tr>
* <tr valign="top">
* <td>DEFERRABILITY</td>
* <td>
* An integer value representing whether the foreign key deferrability is
* SQL_INITIALLY_DEFERRED, SQL_INITIALLY_IMMEDIATE, or
* SQL_NOT_DEFERRABLE.
* </td>
* </tr>
*/
function db2_foreign_keys ($connection, $qualifier, $schema, $table_name) {}
function db2_foreignkeys () {}
/**
* Returns a result set listing primary keys for a table
* @link https://php.net/manual/en/function.db2-primary-keys.php
* @param resource $connection <p>
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
* </p>
* @param string $qualifier <p>
* A qualifier for DB2 databases running on OS/390 or z/OS servers. For
* other databases, pass &null; or an empty string.
* </p>
* @param string $schema <p>
* The schema which contains the tables. If schema
* is &null;, db2_primary_keys matches the schema for
* the current connection.
* </p>
* @param string $table_name
* @return resource|false A statement resource with a result set containing rows describing
* the primary keys for the specified table. The result set is composed of the
* following columns:
* <tr valign="top">
* <td>Column name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>TABLE_CAT</td>
* <td>
* Name of the catalog for the table containing the primary key. The
* value is NULL if this table does not have catalogs.
* </td>
* </tr>
* <tr valign="top">
* <td>TABLE_SCHEM</td>
* <td>
* Name of the schema for the table containing the primary key.
* </td>
* </tr>
* <tr valign="top">
* <td>TABLE_NAME</td>
* <td>Name of the table containing the primary key.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_NAME</td>
* <td>Name of the column containing the primary key.</td>
* </tr>
* <tr valign="top">
* <td>KEY_SEQ</td>
* <td>1-indexed position of the column in the key.</td>
* </tr>
* <tr valign="top">
* <td>PK_NAME</td>
* <td>The name of the primary key.</td>
* </tr>
*/
function db2_primary_keys ($connection, $qualifier, $schema, $table_name) {}
function db2_primarykeys () {}
/**
* Returns a result set listing stored procedure parameters
* @link https://php.net/manual/en/function.db2-procedure-columns.php
* @param resource $connection <p>
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
* </p>
* @param string $qualifier <p>
* A qualifier for DB2 databases running on OS/390 or z/OS servers. For
* other databases, pass &null; or an empty string.
* </p>
* @param string $schema <p>
* The schema which contains the procedures. This parameter accepts a
* search pattern containing _ and %
* as wildcards.
* </p>
* @param string $procedure <p>
* The name of the procedure. This parameter accepts a
* search pattern containing _ and %
* as wildcards.
* </p>
* @param string $parameter <p>
* The name of the parameter. This parameter accepts a search pattern
* containing _ and % as wildcards.
* If this parameter is &null;, all parameters for the specified stored
* procedures are returned.
* </p>
* @return resource|false A statement resource with a result set containing rows describing
* the parameters for the stored procedures matching the specified parameters.
* The rows are composed of the following columns:
* <tr valign="top">
* <td>Column name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>PROCEDURE_CAT</td>
* <td>The catalog that contains the procedure. The value is &null; if
* this table does not have catalogs.</td>
* </tr>
* <tr valign="top">
* <td>PROCEDURE_SCHEM</td>
* <td>Name of the schema that contains the stored procedure.</td>
* </tr>
* <tr valign="top">
* <td>PROCEDURE_NAME</td>
* <td>Name of the procedure.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_NAME</td>
* <td>Name of the parameter.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_TYPE</td>
* <td>
* <p>
* An integer value representing the type of the parameter:
* <tr valign="top">
* <td>Return value</td>
* <td>Parameter type</td>
* </tr>
* <tr valign="top">
* <td>1 (SQL_PARAM_INPUT)</td>
* <td>Input (IN) parameter.</td>
* </tr>
* <tr valign="top">
* <td>2 (SQL_PARAM_INPUT_OUTPUT)</td>
* <td>Input/output (INOUT) parameter.</td>
* </tr>
* <tr valign="top">
* <td>3 (SQL_PARAM_OUTPUT)</td>
* <td>Output (OUT) parameter.</td>
* </tr>
* </p>
* </td>
* </tr>
* <tr valign="top">
* <td>DATA_TYPE</td>
* <td>The SQL data type for the parameter represented as an integer
* value.</td>
* </tr>
* <tr valign="top">
* <td>TYPE_NAME</td>
* <td>A string representing the data type for the parameter.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_SIZE</td>
* <td>An integer value representing the size of the parameter.</td>
* </tr>
* <tr valign="top">
* <td>BUFFER_LENGTH</td>
* <td>
* Maximum number of bytes necessary to store data for this parameter.
* </td>
* </tr>
* <tr valign="top">
* <td>DECIMAL_DIGITS</td>
* <td>
* The scale of the parameter, or &null; where scale is not applicable.
* </td>
* </tr>
* <tr valign="top">
* <td>NUM_PREC_RADIX</td>
* <td>
* An integer value of either 10 (representing
* an exact numeric data type), 2 (representing an
* approximate numeric data type), or &null; (representing a data type for
* which radix is not applicable).
* </td>
* </tr>
* <tr valign="top">
* <td>NULLABLE</td>
* <td>An integer value representing whether the parameter is nullable
* or not.</td>
* </tr>
* <tr valign="top">
* <td>REMARKS</td>
* <td>Description of the parameter.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_DEF</td>
* <td>Default value for the parameter.</td>
* </tr>
* <tr valign="top">
* <td>SQL_DATA_TYPE</td>
* <td>An integer value representing the size of the parameter.</td>
* </tr>
* <tr valign="top">
* <td>SQL_DATETIME_SUB</td>
* <td>
* Returns an integer value representing a datetime subtype code,
* or &null; for SQL data types to which this does not apply.
* </td>
* </tr>
* <tr valign="top">
* <td>CHAR_OCTET_LENGTH</td>
* <td>
* Maximum length in octets for a character data type parameter, which
* matches COLUMN_SIZE for single-byte character set data, or &null; for
* non-character data types.
* </td>
* </tr>
* <tr valign="top">
* <td>ORDINAL_POSITION</td>
* <td>The 1-indexed position of the parameter in the CALL
* statement.</td>
* </tr>
* <tr valign="top">
* <td>IS_NULLABLE</td>
* <td>
* A string value where 'YES' means that the parameter accepts or
* returns &null; values and 'NO' means that the parameter does not
* accept or return &null; values.
* </td>
* </tr>
*/
function db2_procedure_columns ($connection, $qualifier, $schema, $procedure, $parameter) {}
function db2_procedurecolumns () {}
/**
* Returns a result set listing the stored procedures registered in a database
* @link https://php.net/manual/en/function.db2-procedures.php
* @param resource $connection <p>
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
* </p>
* @param string $qualifier <p>
* A qualifier for DB2 databases running on OS/390 or z/OS servers. For
* other databases, pass &null; or an empty string.
* </p>
* @param string $schema <p>
* The schema which contains the procedures. This parameter accepts a
* search pattern containing _ and %
* as wildcards.
* </p>
* @param string $procedure <p>
* The name of the procedure. This parameter accepts a
* search pattern containing _ and %
* as wildcards.
* </p>
* @return resource|false A statement resource with a result set containing rows describing
* the stored procedures matching the specified parameters. The rows are
* composed of the following columns:
* <tr valign="top">
* <td>Column name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>PROCEDURE_CAT</td>
* <td>The catalog that contains the procedure. The value is &null; if
* this table does not have catalogs.</td>
* </tr>
* <tr valign="top">
* <td>PROCEDURE_SCHEM</td>
* <td>Name of the schema that contains the stored procedure.</td>
* </tr>
* <tr valign="top">
* <td>PROCEDURE_NAME</td>
* <td>Name of the procedure.</td>
* </tr>
* <tr valign="top">
* <td>NUM_INPUT_PARAMS</td>
* <td>Number of input (IN) parameters for the stored procedure.</td>
* </tr>
* <tr valign="top">
* <td>NUM_OUTPUT_PARAMS</td>
* <td>Number of output (OUT) parameters for the stored procedure.</td>
* </tr>
* <tr valign="top">
* <td>NUM_RESULT_SETS</td>
* <td>Number of result sets returned by the stored procedure.</td>
* </tr>
* <tr valign="top">
* <td>REMARKS</td>
* <td>Any comments about the stored procedure.</td>
* </tr>
* <tr valign="top">
* <td>PROCEDURE_TYPE</td>
* <td>Always returns 1, indicating that the stored
* procedure does not return a return value.</td>
* </tr>
*/
function db2_procedures ($connection, $qualifier, $schema, $procedure) {}
/**
* Returns a result set listing the unique row identifier columns for a table
* @link https://php.net/manual/en/function.db2-special-columns.php
* @param resource $connection <p>
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
* </p>
* @param string $qualifier <p>
* A qualifier for DB2 databases running on OS/390 or z/OS servers. For
* other databases, pass &null; or an empty string.
* </p>
* @param string $schema <p>
* The schema which contains the tables.
* </p>
* @param string $table_name <p>
* The name of the table.
* </p>
* @param int $scope <p>
* Integer value representing the minimum duration for which the
* unique row identifier is valid. This can be one of the following
* values:
* <tr valign="top">
* <td>Integer value</td>
* <td>SQL constant</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>0</td>
* <td>SQL_SCOPE_CURROW</td>
* <td>Row identifier is valid only while the cursor is positioned
* on the row.</td>
* </tr>
* <tr valign="top">
* <td>1</td>
* <td>SQL_SCOPE_TRANSACTION</td>
* <td>Row identifier is valid for the duration of the
* transaction.</td>
* </tr>
* <tr valign="top">
* <td>2</td>
* <td>SQL_SCOPE_SESSION</td>
* <td>Row identifier is valid for the duration of the
* connection.</td>
* </tr>
* </p>
* @return resource|false A statement resource with a result set containing rows with unique
* row identifier information for a table. The rows are composed of the
* following columns:
* <tr valign="top">
* <td>Column name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>SCOPE</td>
* <td>
* <p>
* <tr valign="top">
* <td>Integer value</td>
* <td>SQL constant</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>0</td>
* <td>SQL_SCOPE_CURROW</td>
* <td>Row identifier is valid only while the cursor is positioned
* on the row.</td>
* </tr>
* <tr valign="top">
* <td>1</td>
* <td>SQL_SCOPE_TRANSACTION</td>
* <td>Row identifier is valid for the duration of the
* transaction.</td>
* </tr>
* <tr valign="top">
* <td>2</td>
* <td>SQL_SCOPE_SESSION</td>
* <td>Row identifier is valid for the duration of the
* connection.</td>
* </tr>
* </p>
* </td>
* </tr>
* <tr valign="top">
* <td>COLUMN_NAME</td>
* <td>Name of the unique column.</td>
* </tr>
* <tr valign="top">
* <td>DATA_TYPE</td>
* <td>SQL data type for the column.</td>
* </tr>
* <tr valign="top">
* <td>TYPE_NAME</td>
* <td>Character string representation of the SQL data type for the
* column.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_SIZE</td>
* <td>An integer value representing the size of the column.</td>
* </tr>
* <tr valign="top">
* <td>BUFFER_LENGTH</td>
* <td>
* Maximum number of bytes necessary to store data from this column.
* </td>
* </tr>
* <tr valign="top">
* <td>DECIMAL_DIGITS</td>
* <td>
* The scale of the column, or &null; where scale is not applicable.
* </td>
* </tr>
* <tr valign="top">
* <td>NUM_PREC_RADIX</td>
* <td>
* An integer value of either 10 (representing
* an exact numeric data type), 2 (representing an
* approximate numeric data type), or &null; (representing a data type for
* which radix is not applicable).
* </td>
* </tr>
* <tr valign="top">
* <td>PSEUDO_COLUMN</td>
* <td>Always returns 1.</td>
* </tr>
*/
function db2_special_columns ($connection, $qualifier, $schema, $table_name, $scope) {}
function db2_specialcolumns () {}
/**
* Returns a result set listing the index and statistics for a table
* @link https://php.net/manual/en/function.db2-statistics.php
* @param resource $connection <p>
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
* </p>
* @param string $qualifier <p>
* A qualifier for DB2 databases running on OS/390 or z/OS servers. For
* other databases, pass &null; or an empty string.
* </p>
* @param string $schema <p>
* The schema that contains the targeted table. If this parameter is
* &null;, the statistics and indexes are returned for the schema of the
* current user.
* </p>
* @param string $table_name <p>
* The name of the table.
* </p>
* @param bool $unique <p>
* An integer value representing the type of index information to return.
* 0
* <p>
* Return only the information for unique indexes on the table.
* </p>
* @return resource|false A statement resource with a result set containing rows describing
* the statistics and indexes for the base tables matching the specified
* parameters. The rows are composed of the following columns:
* <tr valign="top">
* <td>Column name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>TABLE_CAT</td>
* <td>The catalog that contains the table. The value is &null; if
* this table does not have catalogs.</td>
* </tr>
* <tr valign="top">
* <td>TABLE_SCHEM</td>
* <td>Name of the schema that contains the table.</td>
* </tr>
* <tr valign="top">
* <td>TABLE_NAME</td>
* <td>Name of the table.</td>
* </tr>
* <tr valign="top">
* <td>NON_UNIQUE</td>
* <td>
* <p>
* An integer value representing whether the index prohibits unique
* values, or whether the row represents statistics on the table itself:
* <tr valign="top">
* <td>Return value</td>
* <td>Parameter type</td>
* </tr>
* <tr valign="top">
* <td>0 (SQL_FALSE)</td>
* <td>The index allows duplicate values.</td>
* </tr>
* <tr valign="top">
* <td>1 (SQL_TRUE)</td>
* <td>The index values must be unique.</td>
* </tr>
* <tr valign="top">
* <td>&null;</td>
* <td>This row is statistics information for the table itself.</td>
* </tr>
* </p>
* </td>
* </tr>
* <tr valign="top">
* <td>INDEX_QUALIFIER</td>
* <td>A string value representing the qualifier that would have to be
* prepended to INDEX_NAME to fully qualify the index.</td>
* </tr>
* <tr valign="top">
* <td>INDEX_NAME</td>
* <td>A string representing the name of the index.</td>
* </tr>
* <tr valign="top">
* <td>TYPE</td>
* <td>
* <p>
* An integer value representing the type of information contained in
* this row of the result set:
* <tr valign="top">
* <td>Return value</td>
* <td>Parameter type</td>
* </tr>
* <tr valign="top">
* <td>0 (SQL_TABLE_STAT)</td>
* <td>The row contains statistics about the table itself.</td>
* </tr>
* <tr valign="top">
* <td>1 (SQL_INDEX_CLUSTERED)</td>
* <td>The row contains information about a clustered index.</td>
* </tr>
* <tr valign="top">
* <td>2 (SQL_INDEX_HASH)</td>
* <td>The row contains information about a hashed index.</td>
* </tr>
* <tr valign="top">
* <td>3 (SQL_INDEX_OTHER)</td>
* <td>The row contains information about a type of index that
* is neither clustered nor hashed.</td>
* </tr>
* </p>
* </td>
* </tr>
* <tr valign="top">
* <td>ORDINAL_POSITION</td>
* <td>The 1-indexed position of the column in the index. &null; if
* the row contains statistics information about the table itself.</td>
* </tr>
* <tr valign="top">
* <td>COLUMN_NAME</td>
* <td>The name of the column in the index. &null; if the row
* contains statistics information about the table itself.</td>
* </tr>
* <tr valign="top">
* <td>ASC_OR_DESC</td>
* <td>
* A if the column is sorted in ascending order,
* D if the column is sorted in descending order,
* &null; if the row contains statistics information about the table
* itself.
* </td>
* </tr>
* <tr valign="top">
* <td>CARDINALITY</td>
* <td>
* <p>
* If the row contains information about an index, this column contains
* an integer value representing the number of unique values in the
* index.
* </p>
* <p>
* If the row contains information about the table itself, this column
* contains an integer value representing the number of rows in the
* table.
* </p>
* </td>
* </tr>
* <tr valign="top">
* <td>PAGES</td>
* <td>
* <p>