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