odbc.stub.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?php
  2. /** @generate-class-entries */
  3. function odbc_close_all(): void {}
  4. /** @param resource $statement */
  5. function odbc_binmode($statement, int $mode): bool {}
  6. /** @param resource $statement */
  7. function odbc_longreadlen($statement, int $length): bool {}
  8. /**
  9. * @param resource $odbc
  10. * @return resource|false
  11. */
  12. function odbc_prepare($odbc, string $query) {}
  13. /** @param resource $statement */
  14. function odbc_execute($statement, array $params = []): bool {}
  15. /** @param resource $statement */
  16. function odbc_cursor($statement): string|false {}
  17. #ifdef HAVE_SQLDATASOURCES
  18. /** @param resource $odbc */
  19. function odbc_data_source($odbc, int $fetch_type): array|false {}
  20. #endif
  21. /**
  22. * @param resource $odbc
  23. * @return resource|false
  24. */
  25. function odbc_exec($odbc, string $query) {}
  26. /**
  27. * @param resource $odbc
  28. * @return resource|false
  29. * @alias odbc_exec
  30. */
  31. function odbc_do($odbc, string $query) {}
  32. #ifdef PHP_ODBC_HAVE_FETCH_HASH
  33. /** @param resource $statement */
  34. function odbc_fetch_object($statement, int $row = -1): stdClass|false {}
  35. /** @param resource $statement */
  36. function odbc_fetch_array($statement, int $row = -1): array|false {}
  37. #endif
  38. /**
  39. * @param resource $statement
  40. * @param array $array
  41. */
  42. function odbc_fetch_into($statement, &$array, int $row = 0): int|false {}
  43. /** @param resource $statement */
  44. function odbc_fetch_row($statement, ?int $row = null): bool {}
  45. /** @param resource $statement */
  46. function odbc_result($statement, string|int $field): string|bool|null {}
  47. /**
  48. * @param resource $statement
  49. * @deprecated
  50. */
  51. function odbc_result_all($statement, string $format = ""): int|false {}
  52. /** @param resource $statement */
  53. function odbc_free_result($statement): bool {}
  54. /** @return resource|false */
  55. function odbc_connect(string $dsn, string $user, string $password, int $cursor_option = SQL_CUR_USE_DRIVER) {}
  56. /** @return resource|false */
  57. function odbc_pconnect(string $dsn, string $user, string $password, int $cursor_option = SQL_CUR_USE_DRIVER) {}
  58. /** @param resource $odbc */
  59. function odbc_close($odbc): void {}
  60. /** @param resource $statement */
  61. function odbc_num_rows($statement): int {}
  62. #if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30)
  63. /** @param resource $statement */
  64. function odbc_next_result($statement): bool {}
  65. #endif
  66. /** @param resource $statement */
  67. function odbc_num_fields($statement): int {}
  68. /** @param resource $statement */
  69. function odbc_field_name($statement, int $field): string|false {}
  70. /** @param resource $statement */
  71. function odbc_field_type($statement, int $field): string|false {}
  72. /** @param resource $statement */
  73. function odbc_field_len($statement, int $field): int|false {}
  74. /**
  75. * @param resource $statement
  76. * @alias odbc_field_len
  77. */
  78. function odbc_field_precision($statement, int $field): int|false {}
  79. /** @param resource $statement */
  80. function odbc_field_scale($statement, int $field): int|false {}
  81. /** @param resource $statement */
  82. function odbc_field_num($statement, string $field): int|false {}
  83. /** @param resource $odbc */
  84. function odbc_autocommit($odbc, bool $enable = false): int|bool {}
  85. /** @param resource $odbc */
  86. function odbc_commit($odbc): bool {}
  87. /** @param resource $odbc */
  88. function odbc_rollback($odbc): bool {}
  89. /** @param resource|null $odbc */
  90. function odbc_error($odbc = null): string {}
  91. /** @param resource|null $odbc */
  92. function odbc_errormsg($odbc = null): string {}
  93. /** @param resource $odbc */
  94. function odbc_setoption($odbc, int $which, int $option, int $value): bool {}
  95. /**
  96. * @param resource $odbc
  97. * @return resource|false
  98. */
  99. function odbc_tables($odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?string $types = null) {}
  100. /**
  101. * @param resource $odbc
  102. * @return resource|false
  103. */
  104. function odbc_columns($odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?string $column = null) {}
  105. /**
  106. * @param resource $odbc
  107. * @return resource|false
  108. */
  109. function odbc_gettypeinfo($odbc, int $data_type = 0) {}
  110. /**
  111. * @param resource $odbc
  112. * @return resource|false
  113. */
  114. function odbc_primarykeys($odbc, ?string $catalog, string $schema, string $table) {}
  115. #if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) && !defined(HAVE_SOLID_35)
  116. /**
  117. * @param resource $odbc
  118. * @return resource|false
  119. */
  120. function odbc_procedurecolumns($odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure = null, ?string $column = null) {}
  121. /**
  122. * @param resource $odbc
  123. * @return resource|false
  124. */
  125. function odbc_procedures($odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure = null) {}
  126. /**
  127. * @param resource $odbc
  128. * @return resource|false
  129. */
  130. function odbc_foreignkeys($odbc, ?string $pk_catalog, string $pk_schema, string $pk_table, string $fk_catalog, string $fk_schema, string $fk_table) {}
  131. #endif
  132. /**
  133. * @param resource $odbc
  134. * @return resource|false
  135. */
  136. function odbc_specialcolumns($odbc, int $type, ?string $catalog, string $schema, string $table, int $scope, int $nullable) {}
  137. /**
  138. * @param resource $odbc
  139. * @return resource|false
  140. */
  141. function odbc_statistics($odbc, ?string $catalog, string $schema, string $table, int $unique, int $accuracy) {}
  142. #if !defined(HAVE_DBMAKER) && !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) &&!defined(HAVE_SOLID_35)
  143. /**
  144. * @param resource $odbc
  145. * @return resource|false
  146. */
  147. function odbc_tableprivileges($odbc, ?string $catalog, string $schema, string $table) {}
  148. /**
  149. * @param resource $odbc
  150. * @return resource|false
  151. */
  152. function odbc_columnprivileges($odbc, ?string $catalog, string $schema, string $table, string $column) {}
  153. #endif