* Open a connection to a CUBRID Server * @link https://php.net/manual/en/function.cubrid-connect.php * @param string $host
* Host name or IP address of CUBRID CAS server. *
* @param int $port* Port number of CUBRID CAS server (BROKER_PORT configured in * $CUBRID/conf/cubrid_broker.conf). *
* @param string $dbname* Name of database. *
* @param string $userid [optional]* User name for the database. Default value is 'PUBLIC'. *
* @param string $passwd [optional]* User password. Default value is empty string, i.e. no * password is defined. *
* @param bool $new_link [optional]* 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. *
* @return resource|false* a CUBRID connection identifier on success or false on failure. *
*/ function cubrid_connect($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '', $new_link = false) {} /** * (PHP 5, CUBRID >= 8.3.1)
* A character string that contains server connection information.
* Syntax: 'CUBRID:>host<:>port<:>dbname<:>username<:>password<:?>params<'.
* E.g. CUBRID:127.0.0.1:33088:demodb:dba:123456:?autocommit=off&althost=10.34.63.132:33088&rctime=100
*
* User name for the database. Default value is 'PUBLIC'. *
* @param string $passwd [optional]* User password. Default value is empty string, i.e. no * password is defined. *
* @param bool $new_link [optional]* 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. *
* @return resource|false* a CUBRID connection identifier on success or false on failure. *
*/ function cubrid_connect_with_url($conn_url, $userid = 'PUBLIC', $passwd = '', $new_link = false) {} /** * (PHP 5, CUBRID >= 8.3.1)* Host name or IP address of CUBRID CAS server. *
* @param int $port* Port number of CUBRID CAS server (BROKER_PORT configured in * $CUBRID/conf/cubrid_broker.conf). *
* @param string $dbname* Name of database. *
* @param string $userid [optional]* User name for the database. Default value is 'PUBLIC'. *
* @param string $passwd [optional]* User password. Default value is empty string, i.e. no * password is defined. *
* @return resource|false* Connection identifier, when process is successful. * FALSE, when process is unsuccessful. *
*/ function cubrid_pconnect($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '') {} /** * (PHP 5, CUBRID >= 8.3.1)
* A character string that contains server connection information.
* Syntax: 'CUBRID:>host<:>port<:>dbname<:>username<:>password<:?>params<'.
* E.g. CUBRID:127.0.0.1:33088:demodb:dba:123456:?autocommit=off&althost=10.34.63.132:33088&rctime=100
*
* User name for the database. Default value is 'PUBLIC'. *
* @param string $passwd [optional]* User password. Default value is empty string, i.e. no * password is defined. *
* @return resource|false* Connection identifier, when process is successful. * FALSE, when process is unsuccessful. *
*/ function cubrid_pconnect_with_url($conn_url, $userid = 'PUBLIC', $passwd = '') {} /** * (PHP 5, CUBRID >= 8.3.0)* The CUBRID connection identifier. If the connection * identifier is not specified, the last connection * opened by cubrid_connect() is assumed. *
* @return bool* TRUE, when process is successful. * FALSE, when process is unsuccessful. *
*/ function cubrid_close($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @return bool Returns true on success or false on failure. */ function cubrid_disconnect($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.1)* A SQL query. Data inside the query should be properly escaped. *
* @param resource $conn_identifier [optional]* The CUBRID connection. If the connection identifier * is not specified, the last connection opened by * cubrid_connect() is assumed. *
* @return resource|bool* The returned result resource should be passed to * cubrid_fetch_array(), and other functions for dealing * with result tables, to access the returned data. *
** Use cubrid_num_rows() to find out how many rows * were returned for a SELECT statement. *
** Use cubrid_affected_rows() to find out how many * rows were affected by a DELETE, INSERT, REPLACE, or UPDATE * statement. *
** Connection identifier. *
* @param string $sql* SQL to be executed. *
* @param int $option [optional]* Query execution option CUBRID_INCLUDE_OID, CUBRID_ASYNC, * CUBRID_EXEC_QUERY_ALL. *
* @return resource|bool* Request identifier, when process is successful, * or FALSE, when process is unsuccessful. *
*/ function cubrid_execute($conn_identifier, $sql, $option = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* cubrid_prepare() identifier. *
* @param int $option [optional]* Query execution option CUBRID_INCLUDE_OID, CUBRID_ASYNC, * CUBRID_EXEC_QUERY_ALL. *
* @return bool* TRUE, when process is successful. FALSE, when * process is unsuccessful. *
*/ function cubrid_execute($request_identifier, $option = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* Request identifier as a result of cubrid_prepare(). *
* @param int $bind_index* Location of binding parameters. It starts with 1. *
* @param mixed $bind_value* Actual value for binding. *
* @param string $bind_value_type [optional]* 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). *
** The following bind types are supported: * "STRING", "NCHAR", "BIT", "NUMERIC", "NUMBER", "FLOAT", "DOUBLE", * "TIME", "DATE", "TIMESTAMP", "OBJECT", "BLOB", "CLOB", "NULL". *
* @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)* Request identifier. *
* @return bool TRUE, when process is successful, otherwise FALSE. */ function cubrid_close_prepare($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* Request identifier. *
* @return bool TRUE, when process is successful, or FALSE. */ function cubrid_close_request($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance that you want to read. *
* @param string $attr_name* Attribute name that you want to read from the instance. *
* @return array* Connection identifier. *
* @param string $oid* OID of the instance that you want to read. *
* @param string $attr_name* Attribute name that you want to read from the instance. *
* @return int* Number of elements, when process is successful. * FALSE, when process is unsuccessful. *
*/ function cubrid_col_size($conn_identifier, $oid, $attr_name) {} /** * (PHP 5, CUBRID >= 8.3.0)* The SQL query to execute. *
* @param resource $conn_identifier [optional]* The CUBRID connection. If the connection identifier is not * specified, the last connection opened by cubrid_connect() is assumed. *
* @return resource|bool* For SELECT, SHOW, DESCRIBE or EXPLAIN statements, * cubrid_unbuffered_query() returns a resource on success, or false on * error. *
** For other type of SQL statements, UPDATE, DELETE, DROP, etc, * cubrid_unbuffered_query returns true on success * or false on error. *
*/ function cubrid_unbuffered_query($query, $conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* The CUBRID connection. *
* @return array* a numeric array with all existing CUBRID databases on success, * or false on failure. *
*/ function cubrid_list_dbs($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.3.1)* The CUBRID connection. *
* @return string* Error message that occurred. *
*/ function cubrid_error($connection = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* Error message that occurred. *
*/ function cubrid_error_msg() {} /** * (PHP 5, CUBRID >= 8.3.1)* The CUBRID connection identifier. If the connection * identifier is not specified, the last connection * opened by cubrid_connect() is assumed. *
* @return int* the error number from the last CUBRID function, or * 0 (zero) if no error occurred. *
*/ function cubrid_errno($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* Error code of the error that occurred, or * 0 (zero) if no error occurred. *
*/ function cubrid_error_code() {} /** * (PHP 5, CUBRID >= 8.3.0)* The CUBRID connection. If the connection identifier is not * specified, the last link opened by cubrid_connect() is assumed. *
* @return int* 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. *
*/ function cubrid_affected_rows($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* The connection identifier previously obtained by a call * to cubrid_connect(). *
* @return string* 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. *
*/ function cubrid_insert_id($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* The row number from the result that's being retrieved. Row numbers * start at 0. *
* @param mixed $field [optional]* The name or offset of the field being retrieved. *
** 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. *
* @return string* Value of a specific field, on success (NULL if value if null). * FALSE on failure. *
*/ function cubrid_result($result, $row, $field = 0) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute(), * cubrid_query() and cubrid_prepare() *
* @return int* 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. *
*/ function cubrid_num_rows($result) {} /** * (PHP 5, CUBRID >= 8.3.0)* Result. *
* @return int* Number of columns, when process is successful. * FALSE, if SQL statement is not SELECT. *
*/ function cubrid_num_cols($result) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute(), * cubrid_query() and cubrid_prepare() *
* @return int* Number of columns, on success. * -1 if SQL sentence is not SELECT. * FALSE when process is unsuccessful. *
*/ function cubrid_num_fields($result) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute() *
* @param int $type [optional]* 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. *
* @return mixed ** 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: *
** 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. *
*/ function cubrid_fetch($result, $type = CUBRID_BOTH) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute() *
* @param int $type* Type can only be CUBRID_LOB, this parameter will be * used only when you need to operate the lob object. *
* @return array* A numerical array, when process is successful. * FALSE, when there are no more rows; * NULL, when process is unsuccessful. *
*/ function cubrid_fetch_row($result, $type = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* 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. *
* @return array* 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. *
** 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: *
** result comes from a call to cubrid_execute() *
* @param int $type [optional]* Type can only be CUBRID_LOB, this parameter will be used * only when you need to operate the lob object. *
* @return array* Associative array, when process is successful. * FALSE, when there are no more rows; * NULL, when process is unsuccessful. *
*/ function cubrid_fetch_assoc($result, $type = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute() *
* @param string $class_name [optional]* 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. *
* @param array $params [optional]* An optional array of parameters to pass to the constructor * for class_name objects. *
* @param int $type [optional]* Type can only be CUBRID_LOB, this parameter will be used * only when you need to operate the lob object. *
* @return object* 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. *
*/ function cubrid_fetch_object($result, $class_name = null, $params = null, $type = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* The result. *
* @param int $row_number* The desired row number of the new result pointer. *
* @return bool* Returns TRUE on success or FALSE on failure. *
*/ function cubrid_data_seek($result, $row_number) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute() *
* @return array* A numerical array of lengths on success, * or false on failure. *
*/ function cubrid_fetch_lengths($result) {} /** * (PHP 5, CUBRID >= 8.3.1)* result comes from a call to cubrid_execute() *
* @param int $field_offset [optional]* 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. *
* @return object* an object containing field information. The properties * of the object are: *
** Request identifier. *
* @return array* Array of string which containing column names, * when process is successful. FALSE, when process is unsuccessful. *
*/ function cubrid_column_names($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* Request identifier. *
* @return array* Array of string which containing column types, * when process is successful. FALSE, when process is unsuccessful. *
*/ function cubrid_column_types($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute() *
* @param int $field_offset* 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. *
* @return bool* Returns true on success or false on failure. *
*/ function cubrid_field_seek($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)* Request identifier. *
* @return bool* Returns true on success or false on failure. *
** 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(). *
*/ function cubrid_free_result($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute() *
* @param int $field_offset* The field_offset starts at 0. If field_offset does not exist, * an error of level E_WARNING is also issued. *
* @return string* The name of the specified field index on * success or false on failure. *
*/ function cubrid_field_name($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute() *
* @param int $field_offset* The field_offset starts at 0. If field_offset does not exist, * an error of level E_WARNING is also issued. *
* @return string* The name of the table on success, * FALSE when field_offset value is invalid, or * -1 if SQL sentence is not SELECT. *
*/ function cubrid_field_table($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute() *
* @param int $field_offset* The field_offset starts at 0. If field_offset does not exist, * an error of level E_WARNING is also issued. *
* @return int* Maximum length, when process is successful. FALSE on failure. *
*/ function cubrid_field_len($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute() *
* @param int $field_offset* The field_offset starts at 0. If field_offset does not exist, * an error of level E_WARNING is also issued. *
* @return string* 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. *
*/ function cubrid_field_type($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)* result comes from a call to cubrid_execute() *
* @param int $field_offset* 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. *
* @return string* a string of flags associated with the result, * or FALSE when invalid field_offset value, or -1 if SQL sentence * is not SELECT. *
** 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". *
*/ function cubrid_field_flags($result, $field_offset) {} /** * (PHP 5, CUBRID >= 8.3.0)* The string that is to be escaped. *
* @param resource $conn_identifier [optional]* The CUBRID connection. If the connection identifier is not * specified, the last connection opened by cubrid_connect() is assumed. *
* @return string* Escaped string version of the given string, on success. * FALSE on failure. *
*/ function cubrid_real_escape_string($unescaped_string, $conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* The CUBRID connection. If the connection identifier is not * specified, the last link opened by cubrid_connect() is assumed. *
* @return string* A string that represents the CUBRID connection charset; on success. * FALSE on failure. *
*/ function cubrid_client_encoding($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.1)* The CUBRID connection identifier. If the connection identifier * is not specified, the last connection opened by * cubrid_connect() is assumed. *
* @return bool* true if the connection to the server is working, * otherwise false. *
*/ function cubrid_ping($conn_identifier = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* A string that represents the client library version; on success. * FALSE on failure. *
*/ function cubrid_get_client_info() {} /** * (PHP 5, CUBRID >= 8.3.0)* A string that represents the CUBRID server version; on success. * FALSE on failure. *
*/ function cubrid_get_server_info($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @return array* An associative array with CUBRID database parameters; on success. * FALSE on failure. *
*/ function cubrid_get_db_parameter($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.4.0)* Connection identifier. *
* @return bool* TRUE, if autocommit is set to true. FALSE otherwise. * NULL on error. *
*/ function cubrid_get_autocommit($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @return string* A string that represents the CUBRID connection charset; on success. * FALSE on failure. *
*/ function cubrid_get_charset($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.4.0)* Connection identifier. *
* @param bool $mode* Auto-commit mode. The following constants can be used: * CUBRID_AUTOCOMMIT_FALSE, CUBRID_AUTOCOMMIT_TRUE *
* @return bool* TRUE, when process is successful. FALSE, when * process is unsuccessful. *
*/ function cubrid_set_autocommit($conn_identifier, $mode) {} /** * (PHP 5, CUBRID >= 8.3.1)* The result pointer from a call to cubrid_list_dbs. *
* @param int $index* The index into the result set. *
* @return string* the database name on success, and false on failure. If false * is returned, use cubrid_error() to determine the nature * of the error. *
*/ function cubrid_db_name($result, $index) {} /** * (PHP 5, CUBRID >= 8.3.1)* The CUBRID connection. If the connection identifier is not specified, * the last link opened by cubrid_connect() is assumed. *
* @return array* An associative array with CUBRID database * parameters; on success. FALSE on failure. *
*/ function cubrid_db_parameter($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.4.0)* The CUBRID connection. If the connection identifier is not specified, * the last link opened by cubrid_connect() is assumed. *
* @param int $param_type* Database parameter type. Can be PARAM_ISOLATION_LEVEL, * or PARAM_LOCK_TIMEOUT. *
* @param int $param_value* Isolation level value (1-6) or lock timeout (in seconds) value. *
* @return bool* TRUE on success. FALSE on failure. *
*/ function cubrid_set_db_parameter($conn_identifier, $param_type, $param_value) {} /** * (PHP 5, CUBRID >= 8.4.1)* Request identifier. *
* @return int* Success: the query timeout value of the current request. * Units of msec. Failure: FALSE *
*/ function cubrid_get_query_timeout($req_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)* Request identifier. *
* @param int $timeout* Timeout time, unit of msec. *
* @return bool* TRUE, when process is successful. FALSE, when * process is unsuccessful. *
*/ function cubrid_set_query_timeout($req_identifier, $timeout) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance that you want to check the existence. * To get the current OID of the request, use * cubrid_current_oid() function. *
* @return string* Class name when process is successful. * FALSE, when process is unsuccessful. *
*/ function cubrid_get_class_name($conn_identifier, $oid) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance that you want to read. * To get the current OID of the request, use * cubrid_current_oid() function. *
* @param mixed $attr [optional]* Name of the attribute that you want to read. *
* @return mixed* Content of the requested attribute, * when process is successful; When attr is set with string * data type, the result is returned as a string; when attr is * set with array data type (0-based numerical array), then the * result is returned in associative array. When attr is omitted, * then all attributes are received in array form. *
** FALSE when process is unsuccessful or result is NULL * (If error occurs to distinguish empty string from NULL, * then it prints the warning message. You can check the * error by using cubrid_error_code()). *
*/ function cubrid_get($conn_identifier, $oid, $attr = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance that you want to check the existence. * To get the current OID of the request, use * cubrid_current_oid() function. *
* @return int* 1, if such instance exists; 0, if such instance * does not exist; -1, in case of error *
*/ function cubrid_is_instance($conn_identifier, $oid) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @return bool* TRUE, when process is successful. FALSE, when * process is unsuccessful. *
*/ function cubrid_commit($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @return bool* TRUE, when process is successful. FALSE, when * process is unsuccessful. *
*/ function cubrid_rollback($conn_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* Request identifier. *
* @return string* OID of current cursor location, when process * is successful. FALSE, when process is unsuccessful. *
*/ function cubrid_current_oid($req_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance that you want to delete. *
* @return bool* TRUE, when process is successful. FALSE, * when process is unsuccessful. *
*/ function cubrid_drop($conn_identifier, $oid) {} /** * (PHP 5, CUBRID >= 8.3.0)* Facility code of the error code that occurred: * CUBRID_FACILITY_DBMS, CUBRID_FACILITY_CAS, * CUBRID_FACILITY_CCI, CUBRID_FACILITY_CLIENT *
*/ function cubrid_error_code_facility() {} /** * (PHP 5, CUBRID >= 8.3.1)* LOB identifier array return from cubrid_lob_get(). *
* @return bool* TRUE, when process is successful. * FALSE, when process is unsuccessful. *
*/ function cubrid_lob_close($lob_identifier_array) {} /** * (PHP 5, CUBRID >= 8.3.1)* Connection identifier. *
* @param resource $lob_identifier* LOB identifier. *
* @param string $path_name* Path name of the file. *
* @return bool* TRUE, when process is successful. * FALSE, when process is unsuccessful. *
*/ function cubrid_lob_export($conn_identifier, $lob_identifier, $path_name) {} /** * (PHP 5, CUBRID >= 8.3.1)* Connection identifier. *
* @param string $sql* SQL statement to be executed. *
* @return array* Return an array of LOB resources, when process * is successful. FALSE, when process is unsuccessful. *
*/ function cubrid_lob_get($conn_identifier, $sql) {} /** * (PHP 5, CUBRID >= 8.3.1)* Connection identifier. *
* @param resource $lob_identifier* LOB identifier. *
* @return bool* TRUE, when process is successful. FALSE, when * process is unsuccessful. *
*/ function cubrid_lob_send($conn_identifier, $lob_identifier) {} /** * (PHP 5, CUBRID >= 8.3.1)* LOB identifier. *
* @return string* A string representing LOB data size, when * process is successful. FALSE, when process is unsuccessful. *
*/ function cubrid_lob_size($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)* Reqeust identifier. *
* @param int $bind_index* Location of binding parameters. It starts with 1. *
* @param mixed $bind_value* Actual value for binding. *
* @param string $bind_value_type [optional]* It must be "BLOB" or "CLOB" and it won't be case-sensitive. * If it not be given, the default value is "BLOB". *
* @return bool* TRUE, when process is successful. * FALSE, when process is unsuccessful. *
*/ function cubrid_lob2_bind($req_identifier, $bind_index, $bind_value, $bind_value_type = null) {} /** * (PHP 5, CUBRID >= 8.4.1)* Lob identifier as a result of cubrid_lob2_new() * or get from the result set. *
* @return bool* TRUE, on success. * FALSE, on failure. *
*/ function cubrid_lob2_close($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)* Lob identifier as a result of cubrid_lob2_new() or get * from the result set. *
* @param string $file_name* File name you want to store BLOB/CLOB data. * It also supports the path of the file. *
* @return bool* TRUE if the process is successful and FALSE for failure. *
*/ function cubrid_lob2_export($lob_identifier, $file_name) {} /** * (PHP 5, CUBRID >= 8.4.1)* Lob identifier as a result of cubrid_lob2_new() or get * from the result set. *
* @param string $file_name* File name you want to import BLOB/CLOB data. * It also supports the path of the file. *
* @return bool* TRUE if the process is successful and FALSE for failure. *
*/ function cubrid_lob2_import($lob_identifier, $file_name) {} /** * (PHP 5, CUBRID >= 8.4.1)* Connection identifier. If the connection identifier is * not specified, the last connection opened by * cubrid_connect() or cubrid_connect_with_url() is assumed. *
* @param string $type [optional]* It may be "BLOB" or "CLOB", it won't be case-sensitive. * The default value is "BLOB". *
* @return resource|false* Lob identifier when it is successful. FALSE on failure. *
*/ function cubrid_lob2_new($conn_identifier = null, $type = "BLOB") {} /** * (PHP 5, CUBRID >= 8.4.1)* Lob identifier as a result of cubrid_lob2_new() or get * from the result set. *
* @param int $len* Length from buffer you want to read from the lob data. *
* @return string* Returns the contents as a string. * FALSE when there is no more data. * NULL on failure. *
*/ function cubrid_lob2_read($lob_identifier, $len) {} /** * (PHP 5, CUBRID >= 8.4.1)* Lob identifier as a result of cubrid_lob2_new() or get * from the result set. *
* @param string $offset* Number of units you want to move the cursor. *
* @param int $origin [optional]* This parameter can be the following values: *
** TRUE if the process is successful and FALSE for failure. *
*/ function cubrid_lob2_seek64($lob_identifier, $offset, $origin = CUBRID_CURSOR_CURRENT) {} /** * (PHP 5, CUBRID >= 8.4.1)* Lob identifier as a result of cubrid_lob2_new() or get * from the result set. *
* @param int $offset* Number of units you want to move the cursor. *
* @param int $origin [optional]* This parameter can be the following values: *
** TRUE if the process is successful and FALSE for failure. *
*/ function cubrid_lob2_seek($lob_identifier, $offset, $origin = CUBRID_CURSOR_CURRENT) {} /** * (PHP 5, CUBRID >= 8.4.1)* Lob identifier as a result of cubrid_lob2_new() or get * from the result set. *
* @return string* It will return the size of the LOB object as a string * when it processes successfully. FALSE on failure. *
*/ function cubrid_lob2_size64($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)* Lob identifier as a result of cubrid_lob2_new() or get * from the result set. *
* @return int* It will return the size of the LOB object as a string * when it processes successfully. FALSE on failure. *
*/ function cubrid_lob2_size($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)* Lob identifier as a result of cubrid_lob2_new() or get * from the result set. *
* @return string* It will return the cursor position on the LOB object as a * string when it processes successfully. FALSE on failure. *
*/ function cubrid_lob2_tell64($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.4.1)* Lob identifier as a result of cubrid_lob2_new() or get * from the result set. *
* @return int* It will return the cursor position on the LOB object as a * string when it processes successfully. FALSE on failure. *
*/ function cubrid_lob2_tell($lob_identifier) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance that you want to put read lock on. *
* @return bool* TRUE, when process is successful. FALSE, when * process is unsuccessful. *
*/ function cubrid_lock_read($conn_identifier, $oid) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance that you want to put write lock on. *
* @return bool* TRUE, when process is successful. FALSE, when * process is unsuccessful. *
*/ function cubrid_lock_write($conn_identifier, $oid) {} /** * (PHP 5, CUBRID >= 8.3.0)* Request identifier. *
* @param int $offset* Number of units you want to move the cursor. *
* @param int $origin [optional]* Location where you want to move the cursor from * CUBRID_CURSOR_FIRST, CUBRID_CURSOR_CURRENT, CUBRID_CURSOR_LAST. *
* @return int* CUBRID_CURSOR_SUCCESS, when process is successful. * CUBRID_NO_MORE_DATA, when it is not a valid cursor location. * CUBRID_CURSOR_ERROR, in case of error. *
*/ function cubrid_move_cursor($req_identifier, $offset, $origin = CUBRID_CURSOR_CURRENT) {} /** * (PHP 5, CUBRID >= 8.4.0)* result comes from a call to cubrid_execute(). *
* @return bool* TRUE, when process is successful. FALSE, when * process is unsuccessful. *
*/ function cubrid_next_result($result) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $prepare_stmt* Prepare query. *
* @param int $option [optional]* OID return option CUBRID_INCLUDE_OID. *
* @return resource|false* Request identifier, if process is successful; * FALSE, if process is unsuccessful. *
*/ function cubrid_prepare($conn_identifier, $prepare_stmt, $option = 0) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance that you want to update. *
* @param string $attr [optional]* Name of the attribute that you want to update. *
* @param mixed $value* New value that you want to assign to the attribute. *
* @return bool* TRUE, when process is successful. * FALSE, when process is unsuccessful. *
*/ function cubrid_put($conn_identifier, $oid, $attr = null, $value) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param int $schema_type* Schema data that you want to know. *
* @param string $class_name [optional]* Table you want to know the schema of. *
* @param string $attr_name [optional]* Attribute you want to know the schema of. *
* @return array* Array containing the schema information, * when process is successful; FALSE, when process is * unsuccessful. *
*/ function cubrid_schema($conn_identifier, $schema_type, $class_name = null, $attr_name = null) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance you want to work with. *
* @param string $attr_name* Name of the attribute that you want to delete an element from. *
* @param int $index* Index of the element that you want to delete (1-based). *
* @return bool* TRUE, when process is successful. FALSE, * when process is unsuccessful. *
*/ function cubrid_seq_drop($conn_identifier, $oid, $attr_name, $index) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance you want to work with. *
* @param string $attr_name* Name of the attribute you want to insert an instance to. *
* @param int $index* Location of the element, you want to insert the element to (1-based). *
* @param string $seq_element* Content of the element that you want to insert. *
* @return bool* TRUE, when process is successful. FALSE, * when process is unsuccessful. *
*/ function cubrid_seq_insert($conn_identifier, $oid, $attr_name, $index, $seq_element) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance you want to work with. *
* @param string $attr_name* Name of the attribute that you want to update an element. *
* @param int $index* Index of the element that you want to delete (1-based). *
* @param string $seq_element* New content that you want to use for the update. *
* @return bool* TRUE, when process is successful. FALSE, * when process is unsuccessful. *
*/ function cubrid_seq_put($conn_identifier, $oid, $attr_name, $index, $seq_element) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance you want to work with. *
* @param string $attr_name* Name of the attribute you want to insert an element. *
* @param string $seq_element* Content of the element that you want to insert. *
* @return bool* TRUE, when process is successful. FALSE, * when process is unsuccessful. *
*/ function cubrid_seq_add($conn_identifier, $oid, $attr_name, $seq_element) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance you want to work with. *
* @param string $attr_name* Name of the attribute you want to insert an element. *
* @param string $set_element* Content of the element you want to insert. *
* @return bool* TRUE, when process is successful. FALSE, * when process is unsuccessful. *
*/ function cubrid_set_add($conn_identifier, $oid, $attr_name, $set_element) {} /** * (PHP 5, CUBRID >= 8.3.0)* Connection identifier. *
* @param string $oid* OID of the instance you want to work with. *
* @param string $attr_name* Name of the attribute you want to delete an element from. *
* @param string $set_element* Content of the element you want to delete. *
* @return bool* TRUE, when process is successful. FALSE, * when process is unsuccessful. *
*/ function cubrid_set_drop($conn_identifier, $oid, $attr_name, $set_element) {} /** * (PHP 5, CUBRID >= 8.3.0)* Version information (eg. "8.4.1.0001"). *
*/ function cubrid_version() {} /** * Columns are returned into the array having a numerical index to the * fields. This index starts with 0, the first field in the result. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_NUM', 1); /** * Columns are returned into the array having the fieldname as the array * index. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_ASSOC', 2); /** * Columns are returned into the array having both a numerical index * and the fieldname as the array index. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_BOTH', 3); /** * Get query result as an object. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_OBJECT', 4); /** * Determine whether to get OID during query execution. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_INCLUDE_OID', 1); /** * Execute the query in asynchronous mode. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_ASYNC', 2); /** * Execute the query in synchronous mode. * This flag must be set when executing multiple SQL statements. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_EXEC_QUERY_ALL', 4); /** * Returned value of cubrid_move_cursor() function * in case of success. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_CURSOR_SUCCESS', 1); /** * Returned value of cubrid_move_cursor() function in case * of failure. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_NO_MORE_DATA', 0); /** * Returned value of cubrid_move_cursor() function in case * of failure. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_CURSOR_ERROR', -1); /** * Enable the auto-commit mode. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_AUTOCOMMIT_TRUE', 1); /** * Disable the auto-commit mode. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_AUTOCOMMIT_FALSE', 0); /** * Move current cursor to the first position in the result. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_CURSOR_FIRST', 0); /** * Move current cursor as a default value if the origin is * not specified. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_CURSOR_CURRENT', 1); /** * Move current cursor to the last position in the result. * @link https://php.net/manual/en/cubrid.constants.php */ define('CUBRID_CURSOR_LAST', 2); // End of cubrid v.1.0