forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cubrid.php
1959 lines (1846 loc) · 60.3 KB
/
cubrid.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 cubrid v.1.1
/**
* (PHP 5, CUBRID >= 8.3.1)<br/>
* Open a connection to a CUBRID Server
* @link http://php.net/manual/en/function.cubrid-connect.php
* @param string $host <p>
* Host name or IP address of CUBRID CAS server.
* </p>
* @param int $port <p>
* Port number of CUBRID CAS server (BROKER_PORT configured in
* $CUBRID/conf/cubrid_broker.conf).
* </p>
* @param string $dbname <p>
* Name of database.
* </p>
* @param string $userid [optional] <p>
* User name for the database. Default value is 'PUBLIC'.
* </p>
* @param string $passwd [optional] <p>
* User password. Default value is empty string, i.e. no
* password is defined.
* </p>
* @param bool $new_link [optional] <p>
* If a second call is made to cubrid_connect()
* with the same arguments, no new link will be established,
* but instead, the connection identifier of the already
* opened connection will be
* returned. The new_link parameter modifies this
* behavior and makes cubrid_connect() always open
* a new connection, even if cubrid_connect() was called
* before with the same parameters.
* </p>
* @return resource <p>
* a CUBRID connection identifier on success or false on failure.
* </p>
*/
function cubrid_connect ($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '', $new_link = FALSE) {}
/**
* (PHP 5, CUBRID >= 8.3.1)<br/>
* Establish the environment for connecting to CUBRID server.
* @link http://php.net/manual/en/function.cubrid-connect.php
* @param string $conn_url <p>
* A character string that contains server connection information.<br />
* Syntax: 'CUBRID:>host<:>port<:>dbname<:>username<:>password<:?>params<'.<br />
* E.g. <i>CUBRID:127.0.0.1:33088:demodb:dba:123456:?autocommit=off&althost=10.34.63.132:33088&rctime=100</i>
* </p>
* @param string $userid [optional] <p>
* User name for the database. Default value is 'PUBLIC'.
* </p>
* @param string $passwd [optional] <p>
* User password. Default value is empty string, i.e. no
* password is defined.
* </p>
* @param bool $new_link [optional] <p>
* If a second call is made to cubrid_connect()
* with the same arguments, no new link will be established,
* but instead, the connection identifier of the already
* opened connection will be
* returned. The new_link parameter modifies this
* behavior and makes cubrid_connect() always open
* a new connection, even if cubrid_connect() was called
* before with the same parameters.
* </p>
* @return resource <p>
* a CUBRID connection identifier on success or false on failure.
* </p>
*/
function cubrid_connect_with_url ($conn_url, $userid = 'PUBLIC', $passwd = '', $new_link = FALSE) {}
/**
* (PHP 5, CUBRID >= 8.3.1)<br/>
* Open a persistent connection to a CUBRID server
* @link http://php.net/manual/en/function.cubrid-pconnect.php
* @param string $host <p>
* Host name or IP address of CUBRID CAS server.
* </p>
* @param int $port <p>
* Port number of CUBRID CAS server (BROKER_PORT configured in
* $CUBRID/conf/cubrid_broker.conf).
* </p>
* @param string $dbname <p>
* Name of database.
* </p>
* @param string $userid [optional] <p>
* User name for the database. Default value is 'PUBLIC'.
* </p>
* @param string $passwd [optional] <p>
* User password. Default value is empty string, i.e. no
* password is defined.
* </p>
* @return resource <p>
* Connection identifier, when process is successful.
* FALSE, when process is unsuccessful.
* </p>
*/
function cubrid_pconnect ($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '') {}
/**
* (PHP 5, CUBRID >= 8.3.1)<br/>
* Open a persistent connection to CUBRID server
* @link http://www.php.net/manual/en/function.cubrid-pconnect-with-url.php
* @param string $conn_url <p>
* A character string that contains server connection information.<br />
* Syntax: 'CUBRID:>host<:>port<:>dbname<:>username<:>password<:?>params<'.<br />
* E.g. CUBRID:127.0.0.1:33088:demodb:dba:123456:?autocommit=off&althost=10.34.63.132:33088&rctime=100
* </p>
* @param string $userid [optional] <p>
* User name for the database. Default value is 'PUBLIC'.
* </p>
* @param string $passwd [optional] <p>
* User password. Default value is empty string, i.e. no
* password is defined.
* </p>
* @return resource <p>
* Connection identifier, when process is successful.
* FALSE, when process is unsuccessful.
* </p>
*/
function cubrid_pconnect_with_url ($conn_url, $userid = 'PUBLIC', $passwd = '') {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Close CUBRID connection. Same as cubrid_disconnect().
* @link http://php.net/manual/en/function.cubrid-close.php
* @param resource $conn_identifier [optional] <p>
* The CUBRID connection identifier. If the connection
* identifier is not specified, the last connection
* opened by cubrid_connect() is assumed.
* </p>
* @return bool <p>
* TRUE, when process is successful.
* FALSE, when process is unsuccessful.
* </p>
*/
function cubrid_close ($conn_identifier = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Close CUBRID connection. Same as cubrid_close().
* @link http://php.net/manual/en/function.cubrid-disconnect.php
* @param resource $conn_identifier [optional] <p>
* Connection identifier.
* </p>
* @return bool Returns true on success or false on failure.
*/
function cubrid_disconnect ($conn_identifier = null) {}
/**
* (PHP 5, CUBRID >= 8.3.1)<br/>
* Send a CUBRID query
* @link http://php.net/manual/en/function.cubrid-query.php
* @param string $query <p>
* A SQL query. Data inside the query should be properly escaped.
* </p>
* @param resource $conn_identifier [optional] <p>
* The CUBRID connection. If the connection identifier
* is not specified, the last connection opened by
* cubrid_connect() is assumed.
* </p>
* @return resource <ul><li>
* For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements
* returning resultset, cubrid_query() returns a resource
* on success, or false on error.
* </li>
* <li>
* For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc,
* cubrid_query() returns true on success or false on error.
* </li>
* <p>
* The returned result resource should be passed to
* cubrid_fetch_array(), and other functions for dealing
* with result tables, to access the returned data.
* </p>
* <p>
* Use cubrid_num_rows() to find out how many rows
* were returned for a SELECT statement.
* </p>
* <p>
* Use cubrid_affected_rows() to find out how many
* rows were affected by a DELETE, INSERT, REPLACE, or UPDATE
* statement.
* </p>
* <li>
* cubrid_query() will also fail and return false
* if the user does not have permission to access the table(s)
* referenced by the query.
* </li>
* </ul>
*/
function cubrid_query ($query, $conn_identifier = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Execute a prepared SQL statement
* @link http://php.net/manual/en/function.cubrid-execute.php
* @param resource $conn_identifier <p>
* Connection identifier.
* </p>
* @param string $sql <p>
* SQL to be executed.
* </p>
* @param int $option [optional] <p>
* Query execution option CUBRID_INCLUDE_OID, CUBRID_ASYNC,
* CUBRID_EXEC_QUERY_ALL.
* </p>
* @return resource <p>
* Request identifier, when process is successful,
* or FALSE, when process is unsuccessful.
* </p>
*/
function cubrid_execute ($conn_identifier, $sql, $option = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Execute a prepared SQL statement
* @link http://php.net/manual/en/function.cubrid-execute.php
* @param resource $request_identifier <p>
* cubrid_prepare() identifier.
* </p>
* @param resource $option [optional] <p>
* Query execution option CUBRID_INCLUDE_OID, CUBRID_ASYNC,
* CUBRID_EXEC_QUERY_ALL.
* </p>
* @return bool <p>
* TRUE, when process is successful. FALSE, when
* process is unsuccessful.
* </p>
*/
function cubrid_execute ($request_identifier, $option = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Bind variables to a prepared statement as parameters
* @link http://php.net/manual/en/function.cubrid-bind.php
* @param resource $req_identifier <p>
* Request identifier as a result of cubrid_prepare().
* </p>
* @param int $bind_index <p>
* Location of binding parameters. It starts with 1.
* </p>
* @param mixed $bind_value <p>
* Actual value for binding.
* </p>
* @param string $bind_value_type [optional] <p>
* A type of the value to bind. (It is omitted by default. Thus, system
* internally use string by default. However, you need to specify the
* exact type of the value as an argument when
* they are NCHAR, BIT, or BLOB/CLOB).
* </p>
* <p>
* The following bind types are supported:
* "STRING", "NCHAR", "BIT", "NUMERIC", "NUMBER", "FLOAT", "DOUBLE",
* "TIME", "DATE", "TIMESTAMP", "OBJECT", "BLOB", "CLOB", "NULL".
* </p>
* @return bool TRUE, when process is successful, otherwise FALSE.
*/
function cubrid_bind ($req_identifier, $bind_index, $bind_value, $bind_value_type = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Close the request handle. Same as cubrid_close_request().
* @link http://php.net/manual/en/function.cubrid-close-prepare.php
* @param resource $req_identifier <p>
* Request identifier.
* </p>
* @return bool TRUE, when process is successful, otherwise FALSE.
*/
function cubrid_close_prepare ($req_identifier) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Close the request handle. Same as cubrid_close_prepare().
* @link http://php.net/manual/en/function.cubrid-close-request.php
* @param resource $req_identifier <p>
* Request identifier.
* </p>
* @return bool TRUE, when process is successful, or FALSE.
*/
function cubrid_close_request ($req_identifier) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Get contents of collection type column using OID
* @link http://php.net/manual/en/function.cubrid-col-get.php
* @param resource $conn_identifier <p>
* Connection identifier.
* </p>
* @param string $oid <p>
* OID of the instance that you want to read.
* </p>
* @param string $attr_name <p>
* Attribute name that you want to read from the instance.
* </p>
* @return array <ul><li>
* Array (0-based numerical array) containing the
* elements requested, when process is successful;
* </li>
* <li>
* FALSE (to distinguish the error from the situation of
* attribute having empty collection;
* or NULL, in case of error, a warning message is shown;
* in such case you can check the error by using
* cubrid_error_code()), when process is unsuccessful.
* </li>
* </ul>
*/
function cubrid_col_get ($conn_identifier, $oid, $attr_name) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Get the number of elements in collection type column using OID
* @link http://php.net/manual/en/function.cubrid-col-size.php
* @param resource $conn_identifier <p>
* Connection identifier.
* </p>
* @param string $oid <p>
* OID of the instance that you want to read.
* </p>
* @param string $attr_name <p>
* Attribute name that you want to read from the instance.
* </p>
* @return int <p>
* Number of elements, when process is successful.
* FALSE, when process is unsuccessful.
* </p>
*/
function cubrid_col_size ($conn_identifier, $oid, $attr_name) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Perform a query without fetching the results into memory
* @link http://php.net/manual/en/function.cubrid-unbuffered-query.php
* @param string $query <p>
* The SQL query to execute.
* </p>
* @param resource $conn_identifier [optional] <p>
* The CUBRID connection. If the connection identifier is not
* specified, the last connection opened by cubrid_connect() is assumed.
* </p>
* @return resource <p>
* For SELECT, SHOW, DESCRIBE or EXPLAIN statements,
* cubrid_unbuffered_query() returns a resource on success, or false on
* error.
* </p>
* <p>
* For other type of SQL statements, UPDATE, DELETE, DROP, etc,
* cubrid_unbuffered_query returns true on success
* or false on error.
* </p>
*/
function cubrid_unbuffered_query ($query, $conn_identifier = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return an array with the list of all existing CUBRID databases
* @link http://php.net/manual/en/function.cubrid-list-dbs.php
* @param resource $conn_identifier [optional] <p>
* The CUBRID connection.
* </p>
* @return array <p>
* a numeric array with all existing CUBRID databases on success,
* or false on failure.
* </p>
*/
function cubrid_list_dbs ($conn_identifier) {}
/**
* (PHP 5, CUBRID >= 8.3.1)<br/>
* Get the error message. Same as cubrid_error_msg();
* @link http://php.net/manual/en/function.cubrid-error.php
* @param resource $connection [optional] <p>
* The CUBRID connection.
* </p>
* @return string <p>
* Error message that occurred.
* </p>
*/
function cubrid_error ($connection = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Get last error message for the most recent function call.
* Same as cubrid_error();
* @link http://php.net/manual/en/function.cubrid-error-msg.php
* @return string <p>
* Error message that occurred.
* </p>
*/
function cubrid_error_msg () {}
/**
* (PHP 5, CUBRID >= 8.3.1)<br/>
* Returns the numerical value of the error message from previous
* CUBRID operation. Same as cubrid_error_code();
* @link http://php.net/manual/en/function.cubrid-errno.php
* @param resource $conn_identifier [optional] <p>
* The CUBRID connection identifier. If the connection
* identifier is not specified, the last connection
* opened by cubrid_connect() is assumed.
* </p>
* @return int <p>
* the error number from the last CUBRID function, or
* 0 (zero) if no error occurred.
* </p>
*/
function cubrid_errno ($conn_identifier = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Get error code for the most recent function call.
* Same as cubrid_errno();
* @link http://php.net/manual/en/function.cubrid-error-code.php
* @return int <p>
* Error code of the error that occurred, or
* 0 (zero) if no error occurred.
* </p>
*/
function cubrid_error_code () {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return the number of rows affected by the last SQL statement
* @link http://php.net/manual/en/function.cubrid-affected-rows.php
* @param resource $conn_identifier [optional] <p>
* The CUBRID connection. If the connection identifier is not
* specified, the last link opened by cubrid_connect() is assumed.
* </p>
* @return int <p>
* the number of affected rows on success,
* or -1, when SQL statement is not INSERT, DELETE or UPDATE,
* or FALSE, when the request identifier is not specified,
* and there is no last request.
* </p>
*/
function cubrid_affected_rows ($conn_identifier = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return the ID generated for the latest updated AUTO_INCREMENT column
* @link http://php.net/manual/en/function.cubrid-insert-id.php
* @param resource $conn_identifier [optional] <p>
* The connection identifier previously obtained by a call
* to cubrid_connect().
* </p>
* @return string <p>
* A string representing the ID generated for an AUTO_INCREMENT column
* by the previous query, on success. 0, if the previous query does
* not generate new rows. FALSE on failure.
* </p>
*/
function cubrid_insert_id ($conn_identifier = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return the value of a specific field in a specific row
* @link http://php.net/manual/en/function.cubrid-result.php
* @param resource $result
* @param int $row <p>
* The row number from the result that's being retrieved. Row numbers
* start at 0.
* </p>
* @param mixed $field [optional] <p>
* The name or offset of the field being retrieved.
* </p>
* <p>
* It can be the field's offset, the field's name, or the field's table
* dot field name (tablename.fieldname). If the column name has been
* aliased ('select foo as bar from...'), use the alias instead of the
* column name. If undefined, the first field is retrieved.
* </p>
* @return string <p>
* Value of a specific field, on success (NULL if value if null).
* FALSE on failure.
* </p>
*/
function cubrid_result ($result, $row, $field = 0) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Get number of rows in result
* @link http://php.net/manual/en/function.cubrid-num-rows.php
* @param resource $result <p>
* result comes from a call to cubrid_execute(),
* cubrid_query() and cubrid_prepare()
* </p>
* @return int <p>
* Number of rows, when process is successful.
* 0 when the query was done in async mode.
* -1, if SQL statement is not SELECT.
* FALSE when process is unsuccessful.
* </p>
*/
function cubrid_num_rows ($result) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Get number of columns in the result set
* @link http://php.net/manual/en/function.cubrid-num-cols.php
* @param resource $result <p>
* Result.
* </p>
* @return int <p>
* Number of columns, when process is successful.
* FALSE, if SQL statement is not SELECT.
* </p>
*/
function cubrid_num_cols ($result) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Get number of fields in the result set
* @link http://php.net/manual/en/function.cubrid-num-fields.php
* @param resource $result <p>
* result comes from a call to cubrid_execute(),
* cubrid_query() and cubrid_prepare()
* </p>
* @return int <p>
* Number of columns, on success.
* -1 if SQL sentence is not SELECT.
* FALSE when process is unsuccessful.
* </p>
*/
function cubrid_num_fields ($result) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Fetch the next row from a result set
* @link http://php.net/manual/en/function.cubrid-fetch.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param int $type [optional] <p>
* Array type of the fetched result CUBRID_NUM,
* CUBRID_ASSOC, CUBRID_BOTH, CUBRID_OBJECT. If you want to
* operate the lob object, you can use CUBRID_LOB.
* </p>
* @return mixed
* <ul>
* <li>array or object, when process is successful.</li>
* <li>FALSE, when there are no more rows;</li>
* <li>NULL, when process is unsuccessful.</li>
* </ul>
* <p>
* The result can be received either as an array or as an object,
* and you can decide which data type to use by setting the type
* argument. The type variable can be set to one of the following
* values:
* </p>
* <ul>
* <li>CUBRID_NUM : Numerical array (0-based)</li>
* <li>CUBRID_ASSOC : Associative array</li>
* <li>CUBRID_BOTH : Numerical & Associative array (default)</li>
* <li>CUBRID_OBJECT : object that has the attribute name as the
* column name of query result</li>
* </ul>
* <p>
* When type argument is omitted, the result will be received using
* CUBRID_BOTH option as default. When you want to receive query
* result in object data type, the column name of the result must
* obey the naming rules for identifiers in PHP. For example,
* column name such as "count(*)" cannot be received in object type.
* </p>
*/
function cubrid_fetch ($result, $type = CUBRID_BOTH) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return a numerical array with the values of the current row
* @link http://php.net/manual/en/function.cubrid-fetch-row.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param int $type <p>
* Type can only be CUBRID_LOB, this parameter will be
* used only when you need to operate the lob object.
* </p>
* @return array <p>
* A numerical array, when process is successful.
* FALSE, when there are no more rows;
* NULL, when process is unsuccessful.
* </p>
*/
function cubrid_fetch_row ($result, $type = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Fetch a result row as an associative array, a numeric array, or both
* @link http://php.net/manual/en/function.cubrid-fetch-array.php
* @param resource $result
* @param int $type [optional] <p>
* The type of array that is to be fetched. It's a constant and can
* take the following values: CUBRID_ASSOC, CUBRID_NUM, and CUBRID_BOTH.
* </p>
* @return array <p>
* Returns an array of strings that corresponds to the fetched row,
* when process is successful.
* FALSE, when there are no more rows;
* NULL, when process is unsuccessful.
* </p>
* <p>
* The type of returned array depends on how result_type is defined.
* By using CUBRID_BOTH (default), you'll get an array with both
* associative and number indices, and you can decide which data
* type to use by setting the type argument. The type variable can
* be set to one of the following values:
* </p>
* <ul>
* <li>CUBRID_NUM : Numerical array (0-based)</li>
* <li>CUBRID_ASSOC : Associative array</li>
* <li>CUBRID_BOTH : Numerical & Associative array (default)</li>
* </ul>
*/
function cubrid_fetch_array ($result, $type = CUBRID_BOTH) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return the associative array that corresponds to the fetched row
* @link http://php.net/manual/en/function.cubrid-fetch-assoc.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param resource $type [optional] <p>
* Type can only be CUBRID_LOB, this parameter will be used
* only when you need to operate the lob object.
* </p>
* @return array <p>
* Associative array, when process is successful.
* FALSE, when there are no more rows;
* NULL, when process is unsuccessful.
* </p>
*/
function cubrid_fetch_assoc ($result, $type = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Fetch the next row and returns it as an object
* @link http://php.net/manual/en/function.cubrid-fetch-object.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param string $class_name [optional] <p>
* The name of the class to instantiate. If not specified,
* a stdClass (stdClass is PHP's generic empty class that's
* used when casting other types to objects) object is returned.
* </p>
* @param array $params [optional] <p>
* An optional array of parameters to pass to the constructor
* for class_name objects.
* </p>
* @param int $type [optional] <p>
* Type can only be CUBRID_LOB, this parameter will be used
* only when you need to operate the lob object.
* </p>
* @return object <p>
* an object with string properties
* that correspond to the fetched row, or false if there
* are no more rows, or NULL, when process is unsuccessful.
* </p>
*/
function cubrid_fetch_object ($result, $class_name = null, $params = null, $type = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Move the internal row pointer of the CUBRID result
* @link http://php.net/manual/en/function.cubrid-data-seek.php
* @param resource $result <p>
* The result.
* </p>
* @param int $row_number <p>
* The desired row number of the new result pointer.
* </p>
* @return bool <p>
* Returns TRUE on success or FALSE on failure.
* </p>
*/
function cubrid_data_seek ($result, $row_number) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return an array with the lengths of the values of
* each field from the current row
* @link http://php.net/manual/en/function.cubrid-fetch-lengths.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @return array <p>
* A numerical array of lengths on success,
* or false on failure.
* </p>
*/
function cubrid_fetch_lengths ($result) {}
/**
* (PHP 5, CUBRID >= 8.3.1)<br/>
* Get column information from a result and return as an object
* @link http://php.net/manual/en/function.cubrid-fetch-field.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param int $field_offset [optional] <p>
* The numerical field offset. If the field offset is not specified, the
* next field that was not yet retrieved by this function is retrieved.
* The field_offset starts at 0.
* </p>
* @return object <p>
* an object containing field information. The properties
* of the object are:
* </p>
* <ul>
* <li>name - column name</li>
* <li>table - name of the table the column belongs to</li>
* <li>def - default value of the column</li>
* <li>max_length - maximum length of the column</li>
* <li>not_null - 1 if the column cannot be NULL</li>
* <li>primary_key - 1 if the column is a primary key</li>
* <li>unique_key - 1 if the column is a unique key</li>
* <li>multiple_key - 1 if the column is a non-unique key</li>
* <li>numeric - 1 if the column is numeric</li>
* <li>blob - 1 if the column is a BLOB</li>
* <li>type - the type of the column</li>
* <li>unsigned - 1 if the column is unsigned</li>
* <li>zerofill - 1 if the column is zero-filled</li>
* </ul>
*/
function cubrid_fetch_field ($result, $field_offset = 0) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Get the column names in result
* @link http://php.net/manual/en/function.cubrid-column-names.php
* @param resource $req_identifier <p>
* Request identifier.
* </p>
* @return array <p>
* Array of string which containing column names,
* when process is successful. FALSE, when process is unsuccessful.
* </p>
*/
function cubrid_column_names ($req_identifier) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Get column types in result
* @link http://php.net/manual/en/function.cubrid-column-names.php
* @param resource $req_identifier <p>
* Request identifier.
* </p>
* @return array <p>
* Array of string which containing column types,
* when process is successful. FALSE, when process is unsuccessful.
* </p>
*/
function cubrid_column_types ($req_identifier) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Move the result set cursor to a specified field offset
* @link http://php.net/manual/en/function.cubrid-field-seek.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param int $field_offset <p>
* The numerical field offset. The field_offset starts at 0.
* If field_offset does not exist, an error of level
* E_WARNING is also issued.
* </p>
* @return bool <p>
* Returns true on success or false on failure.
* </p>
*/
function cubrid_field_seek ($result, $field_offset) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Free the memory occupied by the result data
* @link http://php.net/manual/en/function.cubrid-free-result.php
* @param resource $req_identifier <p>
* Request identifier.
* </p>
* @return bool <p>
* Returns true on success or false on failure.
* </p>
* <p>
* Note that it can only free the client fetch buffer now,
* and if you want to free all the memory, use function
* cubrid_close_request().
* </p>
*/
function cubrid_free_result ($req_identifier) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return the name of the specified field index
* @link http://php.net/manual/en/function.cubrid-field-name.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param int $field_offset <p>
* The field_offset starts at 0. If field_offset does not exist,
* an error of level E_WARNING is also issued.
* </p>
* @return string <p>
* The name of the specified field index on
* success or false on failure.
* </p>
*/
function cubrid_field_name ($result, $field_offset) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return the name of the table of the specified field
* @link http://php.net/manual/en/function.cubrid-field-table.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param int $field_offset <p>
* The field_offset starts at 0. If field_offset does not exist,
* an error of level E_WARNING is also issued.
* </p>
* @return string <p>
* The name of the table on success,
* FALSE when field_offset value is invalid, or
* -1 if SQL sentence is not SELECT.
* </p>
*/
function cubrid_field_table ($result, $field_offset) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Returns the length of the specified field
* @link http://php.net/manual/en/function.cubrid-field-len.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param int $field_offset <p>
* The field_offset starts at 0. If field_offset does not exist,
* an error of level E_WARNING is also issued.
* </p>
* @return int <p>
* Maximum length, when process is successful. FALSE on failure.
* </p>
*/
function cubrid_field_len ($result, $field_offset) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return the type of the column corresponding to the given field offset
* @link http://php.net/manual/en/function.cubrid-field-type.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param int $field_offset <p>
* The field_offset starts at 0. If field_offset does not exist,
* an error of level E_WARNING is also issued.
* </p>
* @return string <p>
* On success the returned field type will be one of
* "int", "real", "string", "blob", and others as
* detailed in the CUBRID documentation. Otherwise, FALSE
* when invalid field_offset value, or -1 if SQL sentence
* is not SELECT.
* </p>
*/
function cubrid_field_type ($result, $field_offset) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return a string with the flags of the given field offset
* @link http://php.net/manual/en/function.cubrid-field-flags.php
* @param resource $result <p>
* result comes from a call to cubrid_execute()
* </p>
* @param int $field_offset <p>
* The numerical field offset. The field_offset starts at 0.
* If field_offset does not exist, an error of level
* E_WARNING is also issued.
* </p>
* @return string <p>
* a string of flags associated with the result,
* or FALSE when invalid field_offset value, or -1 if SQL sentence
* is not SELECT.
* </p>
* <p>
* The following flags are reported, if your version of CUBRID
* is current enough to support them: "not_null", "primary_key",
* "unique_key", "foreign_key", "auto_increment", "shared",
* "reverse_index", "reverse_unique", and "timestamp".
* </p>
*/
function cubrid_field_flags ($result, $field_offset) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Escapes special characters in a string for use in a SQL statement
* @link http://php.net/manual/en/function.cubrid-real-escape-string.php
* @param string $unescaped_string <p>
* The string that is to be escaped.
* </p>
* @param resource $conn_identifier [optional] <p>
* The CUBRID connection. If the connection identifier is not
* specified, the last connection opened by cubrid_connect() is assumed.
* </p>
* @return string <p>
* Escaped string version of the given string, on success.
* FALSE on failure.
* </p>
*/
function cubrid_real_escape_string ($unescaped_string, $conn_identifier = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Returns the current CUBRID connection charset
* @link http://php.net/manual/en/function.cubrid-client-encoding.php
* @param resource $conn_identifier [optional] <p>
* The CUBRID connection. If the connection identifier is not
* specified, the last link opened by cubrid_connect() is assumed.
* </p>
* @return string <p>
* A string that represents the CUBRID connection charset; on success.
* FALSE on failure.
* </p>
*/
function cubrid_client_encoding ($conn_identifier = null) {}
/**
* (PHP 5, CUBRID >= 8.3.1)<br/>
* Ping a server connection or reconnect if there is no connection
* @link http://php.net/manual/en/function.cubrid-ping.php
* @param resource $conn_identifier [optional] <p>
* The CUBRID connection identifier. If the connection identifier
* is not specified, the last connection opened by
* cubrid_connect() is assumed.
* </p>
* @return bool <p>
* true if the connection to the server is working,
* otherwise false.
* </p>
*/
function cubrid_ping ($conn_identifier = null) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return the client library version
* @link http://php.net/manual/en/function.cubrid-get-client-info.php
* @return string <p>
* A string that represents the client library version; on success.
* FALSE on failure.
* </p>
*/
function cubrid_get_client_info () {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return the CUBRID server version
* @link http://php.net/manual/en/function.cubrid-get-server-info.php
* @param resource $conn_identifier
* @return string <p>
* A string that represents the CUBRID server version; on success.
* FALSE on failure.
* </p>
*/
function cubrid_get_server_info ($conn_identifier) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Returns the CUBRID database parameters
* @link http://www.php.net/manual/en/function.cubrid-get-db-parameter.php
* @param resource $conn_identifier <p>
* Connection identifier.
* </p>
* @return array <p>
* An associative array with CUBRID database parameters; on success.
* FALSE on failure.
* </p>
*/
function cubrid_get_db_parameter ($conn_identifier) {}
/**
* (PHP 5, CUBRID >= 8.4.0)<br/>
* Get auto-commit mode of the connection
* @link http://php.net/manual/en/function.cubrid-get-autocommit.php
* @param resource $conn_identifier <p>
* Connection identifier.
* </p>
* @return bool <p>
* TRUE, if autocommit is set to true. FALSE otherwise.
* NULL on error.
* </p>
*/
function cubrid_get_autocommit ($conn_identifier) {}
/**
* (PHP 5, CUBRID >= 8.3.0)<br/>
* Return the current CUBRID connection charset
* @link http://www.php.net/manual/en/function.cubrid-get-charset.php
* @param resource $conn_identifier <p>