* For a cataloged connection to a database, this parameter * represents the connection alias in the DB2 client catalog. *
** For an uncataloged connection to a database, * this parameter represents a complete DSN in the following format: * DRIVER=driver;DATABASE=database;HOSTNAME=hostname;PORT=port;PROTOCOL=TCPIP;UID=username;PWD=password; *
* @param string|null $username* The username with which you are connecting to the database, or null if * the $database parameter contains a DSN which already provides the username for * the connection. *
* @param string|null $password* The password with which you are connecting to the database, or null if * the $database parameter contains a DSN which already provides the password for * the connection. *
* @param array $options* An associative array of connection options that affect the behavior * of the connection, where valid array keys include: * autocommit *
* Passing the DB2_AUTOCOMMIT_ON value turns * autocommit on for this connection handle. *
** Passing the DB2_AUTOCOMMIT_OFF value turns * autocommit off for this connection handle. *
* @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(#[\SensitiveParameter] string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {} /** * Commits a transaction * @link https://php.net/manual/en/function.db2-commit.php * @param resource $connection* A valid database connection resource variable as returned from * db2_connect or db2_pconnect. *
* @return bool true on success or false on failure. */ function db2_commit($connection): bool {} /** * Returns a persistent connection to a database * @link https://php.net/manual/en/function.db2-pconnect.php * @param string $database* For a cataloged connection to a database, this parameter * represents the connection alias in the DB2 client catalog. *
** For an uncataloged connection to a database, * this parameter represents a complete DSN in the following format: * DRIVER=driver;DATABASE=database;HOSTNAME=hostname;PORT=port;PROTOCOL=TCPIP;UID=username;PWD=password; *
* @param string|null $username* The username with which you are connecting to the database, or null if * the $database parameter contains a DSN which already provides the username for * the connection. *
* @param string|null $password* The password with which you are connecting to the database, or null if * the $database parameter contains a DSN which already provides the password for * the connection. *
* @param array $options* An associative array of connection options that affect the behavior * of the connection, where valid array keys include: * autocommit *
** Passing the DB2_AUTOCOMMIT_ON value turns * autocommit on for this connection handle. *
** Passing the DB2_AUTOCOMMIT_OFF value turns * autocommit off for this connection handle. *
* @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(#[\SensitiveParameter] string $database, ?string $username, #[\SensitiveParameter] ?string $password, array $options = []) {} /** * Returns or sets the AUTOCOMMIT state for a database connection * @link https://php.net/manual/en/function.db2-autocommit.php * @param resource $connection* A valid database connection resource variable as returned from * db2_connect or db2_pconnect. *
* @param int $value* One of the following constants:
** DB2_AUTOCOMMIT_OFF * Turns AUTOCOMMIT off. *
** DB2_AUTOCOMMIT_ON * Turns AUTOCOMMIT on. *
* @return int|boolWhen 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. *
** 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, int $value = null): int|bool {} /** * Binds a PHP variable to an SQL statement parameter * @link https://php.net/manual/en/function.db2-bind-param.php * @param resource $stmt* A prepared statement returned from db2_prepare. *
* @param int $parameter_number * @param string $variable_name * @param int $parameter_type * @param int $data_type * @param int $precision* 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. *
* @param int $scale* Specifies the scale with which the variable should be bound to the * database. *
* @return bool true on success or false on failure. */ 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 {} /** * Closes a database connection * @link https://php.net/manual/en/function.db2-close.php * @param resource $connection* Specifies an active DB2 client connection. *
* @return bool true on success or false on failure. */ function db2_close($connection): bool {} /** * 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* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database. *
* @param string|null $qualifier* A qualifier for DB2 databases running on OS/390 or z/OS servers. For * other databases, pass null or an empty string. *
* @param string|null $schema* The schema which contains the tables. To match all schemas, pass null * or an empty string. *
* @param string|null $table_name * @param string|null $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: ** A valid connection to an IBM DB2, Cloudscape, or Apache Derby database. *
* @param string $qualifier* A qualifier for DB2 databases running on OS/390 or z/OS servers. For * other databases, pass null or an empty string. *
* @param string $schema* The schema which contains the tables. To match all schemas, pass * '%'. *
* @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: ** A valid connection to an IBM DB2, Cloudscape, or Apache Derby database. *
* @param string|null $qualifier* A qualifier for DB2 databases running on OS/390 or z/OS servers. For * other databases, pass null or an empty string. *
* @param string|null $schema* The schema which contains the tables. If schema * is null, db2_foreign_keys matches the schema for * the current connection. *
* @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: ** A valid connection to an IBM DB2, Cloudscape, or Apache Derby database. *
* @param string|null $qualifier* A qualifier for DB2 databases running on OS/390 or z/OS servers. For * other databases, pass null or an empty string. *
* @param string|null $schema* The schema which contains the tables. If schema * is null, db2_primary_keys matches the schema for * the current connection. *
* @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: ** A valid connection to an IBM DB2, Cloudscape, or Apache Derby database. *
* @param string|null $qualifier* A qualifier for DB2 databases running on OS/390 or z/OS servers. For * other databases, pass null or an empty string. *
* @param string $schema* The schema which contains the procedures. This parameter accepts a * search pattern containing _ and % * as wildcards. *
* @param string $procedure* The name of the procedure. This parameter accepts a * search pattern containing _ and % * as wildcards. *
* @param string|null $parameter* 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. *
* @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: ** An integer value representing the type of the parameter: *
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database. *
* @param string|null $qualifier* A qualifier for DB2 databases running on OS/390 or z/OS servers. For * other databases, pass null or an empty string. *
* @param string $schema* The schema which contains the procedures. This parameter accepts a * search pattern containing _ and % * as wildcards. *
* @param string $procedure* The name of the procedure. This parameter accepts a * search pattern containing _ and % * as wildcards. *
* @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: ** A valid connection to an IBM DB2, Cloudscape, or Apache Derby database. *
* @param string|null $qualifier* A qualifier for DB2 databases running on OS/390 or z/OS servers. For * other databases, pass null or an empty string. *
* @param string $schema* The schema which contains the tables. *
* @param string $table_name* The name of the table. *
* @param int $scope* Integer value representing the minimum duration for which the * unique row identifier is valid. This can be one of the following * values: *
*
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database. *
* @param string|null $qualifier* A qualifier for DB2 databases running on OS/390 or z/OS servers. For * other databases, pass null or an empty string. *
* @param string|null $schema* 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. *
* @param string $table_name* The name of the table. *
* @param bool $unique* Whether to return the only the unique indexes or all the indexes in the table. *
** Return only the information for unique indexes on the table. *
* @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: *Column name | *Description | *||||||||||
TABLE_CAT | *The catalog that contains the table. The value is null if * this table does not have catalogs. | *||||||||||
TABLE_SCHEM | *Name of the schema that contains the table. | *||||||||||
TABLE_NAME | *Name of the table. | *||||||||||
NON_UNIQUE | *
*
|
* ||||||||||
INDEX_QUALIFIER | *A string value representing the qualifier that would have to be * prepended to INDEX_NAME to fully qualify the index. | *||||||||||
INDEX_NAME | *A string representing the name of the index. | *||||||||||
TYPE | *
* * An integer value representing the type of information contained in * this row of the result set: *
|
* ||||||||||
ORDINAL_POSITION | *The 1-indexed position of the column in the index. null if * the row contains statistics information about the table itself. | *||||||||||
COLUMN_NAME | *The name of the column in the index. null if the row * contains statistics information about the table itself. | *||||||||||
ASC_OR_DESC | ** 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. * | *||||||||||
CARDINALITY | *
* * If the row contains information about an index, this column contains * an integer value representing the number of unique values in the * index. * ** If the row contains information about the table itself, this column * contains an integer value representing the number of rows in the * table. * * |
* ||||||||||
PAGES | *
* * If the row contains information about an index, this column contains * an integer value representing the number of pages used to store the * index. * ** If the row contains information about the table itself, this column * contains an integer value representing the number of pages used to * store the table. * * |
* ||||||||||
FILTER_CONDITION | *Always returns null. | *
* A valid connection to an IBM DB2, Cloudscape, or Apache Derby database. *
* @param string|null $qualifier* A qualifier for DB2 databases running on OS/390 or z/OS servers. For * other databases, pass null or an empty string. *
* @param string|null $schema* The schema which contains the tables. This parameter accepts a * search pattern containing _ and % * as wildcards. *
* @param string|null $table_name* The name of the table. This parameter accepts a search pattern * containing _ and % as wildcards. *
* @return resource|false A statement resource with a result set containing rows describing * the privileges for the tables that match the specified parameters. The rows * are composed of the following columns: ** A valid connection to an IBM DB2, Cloudscape, or Apache Derby database. *
* @param string|null $qualifier* A qualifier for DB2 databases running on OS/390 or z/OS servers. For * other databases, pass null or an empty string. *
* @param string|null $schema* The schema which contains the tables. This parameter accepts a * search pattern containing _ and % * as wildcards. *
* @param string|null $table_name * @param string|null $table_type * @return resource|false A statement resource with a result set containing rows describing * the tables that match the specified parameters. The rows are composed of * the following columns: ** A valid database connection resource variable as returned from * db2_connect or db2_pconnect. *
* @param string $statement* An SQL statement. The statement cannot contain any parameter markers. *
* @param array $options* An associative array containing statement options. You can use this * parameter to request a scrollable cursor on database servers that * support this functionality. * cursor *
** Passing the DB2_FORWARD_ONLY value requests a * forward-only cursor for this SQL statement. This is the default * type of cursor, and it is supported by all database servers. It is * also much faster than a scrollable cursor. *
** Passing the DB2_SCROLLABLE value requests a * scrollable cursor for this SQL statement. This type of cursor * enables you to fetch rows non-sequentially from the database * server. However, it is only supported by DB2 servers, and is much * slower than forward-only cursors. *
* @return resource|false A statement resource if the SQL statement was issued successfully, * or false if the database failed to execute the SQL statement. */ function db2_exec($connection, string $statement, array $options = []) {} /** * Prepares an SQL statement to be executed * @link https://php.net/manual/en/function.db2-prepare.php * @param resource $connection* A valid database connection resource variable as returned from * db2_connect or db2_pconnect. *
* @param string $statement* An SQL statement, optionally containing one or more parameter markers.. *
* @param array $options* An associative array containing statement options. You can use this * parameter to request a scrollable cursor on database servers that * support this functionality. * cursor *
* * Passing the DB2_FORWARD_ONLY value requests a * forward-only cursor for this SQL statement. This is the default * type of cursor, and it is supported by all database servers. It is * also much faster than a scrollable cursor. * ** Passing the DB2_SCROLLABLE value requests a * scrollable cursor for this SQL statement. This type of cursor * enables you to fetch rows non-sequentially from the database * server. However, it is only supported by DB2 servers, and is much * slower than forward-only cursors. *
* @return resource|false A statement resource if the SQL statement was successfully parsed and * prepared by the database server. Returns false if the database server * returned an error. You can determine which error was returned by calling * db2_stmt_error or db2_stmt_errormsg. */ function db2_prepare($connection, string $statement, array $options = []) {} /** * Executes a prepared SQL statement * @link https://php.net/manual/en/function.db2-execute.php * @param resource $stmt* A prepared statement returned from db2_prepare. *
* @param array $parameters* An array of input parameters matching any parameter markers contained * in the prepared statement. *
* @return bool true on success or false on failure. */ function db2_execute($stmt, array $parameters = []): bool {} /** * Returns a string containing the last SQL statement error message * @link https://php.net/manual/en/function.db2-stmt-errormsg.php * @param resource|null $stmt* A valid statement resource or NULL. *
* @return string a string containing the error message and SQLCODE value for the * last error that occurred issuing an SQL statement. */ function db2_stmt_errormsg($stmt = null) {} /** * Returns the last connection error message and SQLCODE value * @link https://php.net/manual/en/function.db2-conn-errormsg.php * @param resource|null $connection* A connection resource associated with a connection that initially * succeeded, but which over time became invalid. *
* @return string a string containing the error message and SQLCODE value resulting * from a failed connection attempt. If there is no error associated with the last * connection attempt, db2_conn_errormsg returns an empty * string. */ function db2_conn_errormsg($connection = null) {} /** * Returns a string containing the SQLSTATE returned by the last connection attempt * @link https://php.net/manual/en/function.db2-conn-error.php * @param resource|null $connection* A connection resource associated with a connection that initially * succeeded, but which over time became invalid. *
* @return string the SQLSTATE value resulting from a failed connection attempt. * Returns an empty string if there is no error associated with the last * connection attempt. */ function db2_conn_error($connection = null) {} /** * Returns a string containing the SQLSTATE returned by an SQL statement * @link https://php.net/manual/en/function.db2-stmt-error.php * @param resource|null $stmt* A valid statement resource or NULL. *
* @return string a string containing an SQLSTATE value. */ function db2_stmt_error($stmt = null) {} /** * Requests the next result set from a stored procedure * @link https://php.net/manual/en/function.db2-next-result.php * @param resource $stmt* A prepared statement returned from db2_exec or * db2_execute. *
* @return resource|false A new statement resource containing the next result set if the * stored procedure returned another result set. Returns false if the stored * procedure did not return another result set. */ function db2_next_result($stmt) {} /** * Returns the number of fields contained in a result set * @link https://php.net/manual/en/function.db2-num-fields.php * @param resource $stmt* A valid statement resource containing a result set. *
* @return int|false An integer value representing the number of fields in the result * set associated with the specified statement resource. Returns false if * the statement resource is not a valid input value. */ function db2_num_fields($stmt): int|false {} /** * Returns the number of rows affected by an SQL statement * @link https://php.net/manual/en/function.db2-num-rows.php * @param resource $stmt* A valid stmt resource containing a result set. *
* @return int|false the number of rows affected by the last SQL statement issued by * the specified statement handle, or false in case of failure. */ function db2_num_rows($stmt): int|false {} /** * Returns the name of the column in the result set * @link https://php.net/manual/en/function.db2-field-name.php * @param resource $stmt* Specifies a statement resource containing a result set. *
* @param int|string $column* Specifies the column in the result set. This can either be an integer * representing the 0-indexed position of the column, or a string * containing the name of the column. *
* @return string|false A string containing the name of the specified column. If the * specified column does not exist in the result * set, db2_field_name returns false. */ function db2_field_name($stmt, int|string $column): string|false {} /** * Returns the maximum number of bytes required to display a column * @link https://php.net/manual/en/function.db2-field-display-size.php * @param resource $stmt* Specifies a statement resource containing a result set. *
* @param int|string $column* Specifies the column in the result set. This can either be an integer * representing the 0-indexed position of the column, or a string * containing the name of the column. *
* @return int|false An integer value with the maximum number of bytes required to * display the specified column. If the column does not exist in the result * set, db2_field_display_size returns false. */ function db2_field_display_size($stmt, int|string $column): int|false {} /** * Returns the position of the named column in a result set * @link https://php.net/manual/en/function.db2-field-num.php * @param resource $stmt* Specifies a statement resource containing a result set. *
* @param int|string $column* Specifies the column in the result set. This can either be an integer * representing the 0-indexed position of the column, or a string * containing the name of the column. *
* @return int|false An integer containing the 0-indexed position of the named column in * the result set. If the specified column does not exist in the result set, * db2_field_num returns false. */ function db2_field_num($stmt, int|string $column): int|false {} /** * Returns the precision of the indicated column in a result set * @link https://php.net/manual/en/function.db2-field-precision.php * @param resource $stmt* Specifies a statement resource containing a result set. *
* @param int|string $column* Specifies the column in the result set. This can either be an integer * representing the 0-indexed position of the column, or a string * containing the name of the column. *
* @return int|false An integer containing the precision of the specified column. If the * specified column does not exist in the result set, * db2_field_precision returns false. */ function db2_field_precision($stmt, int|string $column): int|false {} /** * Returns the scale of the indicated column in a result set * @link https://php.net/manual/en/function.db2-field-scale.php * @param resource $stmt* Specifies a statement resource containing a result set. *
* @param int|string $column* Specifies the column in the result set. This can either be an integer * representing the 0-indexed position of the column, or a string * containing the name of the column. *
* @return int|false An integer containing the scale of the specified column. If the * specified column does not exist in the result set, * db2_field_scale returns false. */ function db2_field_scale($stmt, int|string $column): int|false {} /** * Returns the data type of the indicated column in a result set * @link https://php.net/manual/en/function.db2-field-type.php * @param resource $stmt* Specifies a statement resource containing a result set. *
* @param int|string $column* Specifies the column in the result set. This can either be an integer * representing the 0-indexed position of the column, or a string * containing the name of the column. *
* @return string|false A string containing the defined data type of the specified column. * If the specified column does not exist in the result set, * db2_field_type returns false. */ function db2_field_type($stmt, int|string $column): string|false {} /** * Returns the width of the current value of the indicated column in a result set * @link https://php.net/manual/en/function.db2-field-width.php * @param resource $stmt* Specifies a statement resource containing a result set. *
* @param int|string $column* Specifies the column in the result set. This can either be an integer * representing the 0-indexed position of the column, or a string * containing the name of the column. *
* @return int|false An integer containing the width of the specified character or * binary data type column in a result set. If the specified column does not * exist in the result set, db2_field_width returns * false. */ function db2_field_width($stmt, int|string $column): int|false {} /** * Returns the cursor type used by a statement resource * @link https://php.net/manual/en/function.db2-cursor-type.php * @param resource $stmt* A valid statement resource. *
* @return int either DB2_FORWARD_ONLY if the statement * resource uses a forward-only cursor or DB2_SCROLLABLE if * the statement resource uses a scrollable cursor. */ function db2_cursor_type($stmt): int {} /** * Rolls back a transaction * @link https://php.net/manual/en/function.db2-rollback.php * @param resource $connection* A valid database connection resource variable as returned from * db2_connect or db2_pconnect. *
* @return bool true on success or false on failure. */ function db2_rollback($connection): bool {} /** * Frees resources associated with the indicated statement resource * @link https://php.net/manual/en/function.db2-free-stmt.php * @param resource $stmt* A valid statement resource. *
* @return bool true on success or false on failure. */ function db2_free_stmt($stmt): bool {} /** * Returns a single column from a row in the result set * @link https://php.net/manual/en/function.db2-result.php * @param resource $stmt* A valid stmt resource. *
* @param int|string $column* Either an integer mapping to the 0-indexed field in the result set, or * a string matching the name of the column. *
* @return mixed the value of the requested field if the field exists in the result * set. Returns NULL if the field does not exist, and issues a warning. */ function db2_result($stmt, int|string $column): mixed {} /** * Sets the result set pointer to the next row or requested row * @link https://php.net/manual/en/function.db2-fetch-row.php * @param resource $stmt* A valid stmt resource. *
* @param int $row_number* With scrollable cursors, you can request a specific row number in the * result set. Row numbering is 1-indexed. *
* @return bool true if the requested row exists in the result set. Returns * false if the requested row does not exist in the result set. */ function db2_fetch_row($stmt, int $row_number = null) {} /** * Returns an array, indexed by column name, representing a row in a result set * @link https://php.net/manual/en/function.db2-fetch-assoc.php * @param resource $stmt* A valid stmt resource containing a result set. *
* @param int $row_number* Requests a specific 1-indexed row from the result set. Passing this * parameter results in a PHP warning if the result set uses a * forward-only cursor. *
* @return array|false An associative array with column values indexed by the column name * representing the next or requested row in the result set. Returns false if * there are no rows left in the result set, or if the row requested by * row_number does not exist in the result set. */ function db2_fetch_assoc($stmt, int $row_number = null): array|false {} /** * Returns an array, indexed by column position, representing a row in a result set * @link https://php.net/manual/en/function.db2-fetch-array.php * @param resource $stmt* A valid stmt resource containing a result set. *
* @param int $row_number* Requests a specific 1-indexed row from the result set. Passing this * parameter results in a PHP warning if the result set uses a * forward-only cursor. *
* @return array|false A 0-indexed array with column values indexed by the column position * representing the next or requested row in the result set. Returns false if * there are no rows left in the result set, or if the row requested by * row_number does not exist in the result set. */ function db2_fetch_array($stmt, int $row_number = null): array|false {} /** * Returns an array, indexed by both column name and position, representing a row in a result set * @link https://php.net/manual/en/function.db2-fetch-both.php * @param resource $stmt* A valid stmt resource containing a result set. *
* @param int $row_number* Requests a specific 1-indexed row from the result set. Passing this * parameter results in a PHP warning if the result set uses a * forward-only cursor. *
* @return array|false An associative array with column values indexed by both the column * name and 0-indexed column number. The array represents the next or * requested row in the result set. Returns false if there are no rows left * in the result set, or if the row requested by * row_number does not exist in the result set. */ function db2_fetch_both($stmt, int $row_number = null): array|false {} /** * Frees resources associated with a result set * @link https://php.net/manual/en/function.db2-free-result.php * @param resource $stmt* A valid statement resource. *
* @return bool true on success or false on failure. */ function db2_free_result($stmt): bool {} /** * Set options for connection or statement resources * @link https://php.net/manual/en/function.db2-set-option.php * @param resource $resource* A valid statement resource as returned from * db2_prepare or a valid connection resource as * returned from db2_connect or * db2_pconnect. *
* @param array $options* An associative array containing valid statement or connection * options. This parameter can be used to change autocommit values, * cursor types (scrollable or forward), and to specify the case of * the column names (lower, upper, or natural) that will appear in a * result set. * autocommit *
* Passing DB2_AUTOCOMMIT_ON turns * autocommit on for the specified connection resource. *
** Passing DB2_AUTOCOMMIT_OFF turns * autocommit off for the specified connection resource. *
* @param int $type* An integer value that specifies the type of resource that was * passed into the function. The type of resource and this value * must correspond. *
* Passing 1 as the value specifies that * a connection resource has been passed into the function. *
** Passing any integer not equal to 1 as * the value specifies that a statement resource has been * passed into the function. *
* @return bool true on success or false on failure. */ function db2_set_option($resource, array $options, int $type): bool {} function db2_setoption(): bool {} /** * Returns an object with properties representing columns in the fetched row * @link https://php.net/manual/en/function.db2-fetch-object.php * @param resource $stmt* A valid stmt resource containing a result set. *
* @param int $row_number* Requests a specific 1-indexed row from the result set. Passing this * parameter results in a PHP warning if the result set uses a * forward-only cursor. *
* @return stdClass|false An object representing a single row in the result set. The * properties of the object map to the names of the columns in the result set. * ** The IBM DB2, Cloudscape, and Apache Derby database servers typically fold * column names to upper-case, so the object properties will reflect that case. *
** If your SELECT statement calls a scalar function to modify the value * of a column, the database servers return the column number as the name of * the column in the result set. If you prefer a more descriptive column name * and object property, you can use the AS clause to assign a name to the * column in the result set. *
** Returns false if no row was retrieved. */ function db2_fetch_object($stmt, int $row_number = null): stdClass|false {} /** * Returns an object with properties that describe the DB2 database server * @link https://php.net/manual/en/function.db2-server-info.php * @param resource $connection
* Specifies an active DB2 client connection. *
* @return stdClass|false An object on a successful call. Returns false on failure. */ function db2_server_info($connection): stdClass|false {} /** * Returns an object with properties that describe the DB2 database client * @link https://php.net/manual/en/function.db2-client-info.php * @param resource $connection* Specifies an active DB2 client connection. *
* @return stdClass|false An object on a successful call. Returns false on failure. */ function db2_client_info($connection): stdClass|false {} /** * Used to escape certain characters * @link https://php.net/manual/en/function.db2-escape-string.php * @param string $string_literal* The string that contains special characters that need to be modified. * Characters that are prepended with a backslash are \x00, * \n, \r, \, * ', " and \x1a. *
* @return string string_literal with the special characters * noted above prepended with backslashes. */ function db2_escape_string(string $string_literal): string {} /** * Gets a user defined size of LOB files with each invocation * @link https://php.net/manual/en/function.db2-lob-read.php * @param resource $stmt* A valid stmt resource containing LOB data. *
* @param int $colnum* A valid column number in the result set of the stmt resource. *
* @param int $length* The size of the LOB data to be retrieved from the stmt resource. *
* @return string|false The amount of data the user specifies. Returns * false if the data cannot be retrieved. */ function db2_lob_read($stmt, int $colnum, int $length): string|false {} /** * Retrieves an option value for a statement resource or a connection resource * @link https://php.net/manual/en/function.db2-get-option.php * @param resource $resource* A valid statement resource as returned from * db2_prepare or a valid connection resource as * returned from db2_connect or * db2_pconnect. *
* @param string $option* A valid statement or connection options. The following new options are available * as of ibm_db2 version 1.6.0. They provide useful tracking information * that can be set during execution with db2_get_option. *
** Note: Prior versions of ibm_db2 do not support these new options. *
** When the value in each option is being set, some servers might not handle * the entire length provided and might truncate the value. *
** To ensure that the data specified in each option is converted correctly * when transmitted to a host system, use only the characters A through Z, * 0 through 9, and the underscore (_) or period (.). *
** SQL_ATTR_INFO_USERID - A pointer to a null-terminated * character string used to identify the client user ID sent to the host * database server when using DB2 Connect. *
** Note: DB2 for z/OS and OS/390 servers support up to a length of 16 characters. * This user-id is not to be confused with the authentication user-id, it is for * identification purposes only and is not used for any authorization. *
* @return string|false The current setting of the connection attribute provided on success * or false on failure. */ function db2_get_option($resource, string $option): string|false {} /** * Returns the auto generated ID of the last insert query that successfully executed on this connection. * @link https://php.net/manual/en/function.db2-last-insert-id.php * The result of this function is not affected by any of the following: *