public class MysqliModule extends AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
MysqliModule() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getLoadedExtensions()
Returns true for the mysql extension.
|
boolean |
mysql_stmt_close(Env env,
MysqliStatement stmt)
Closes the statement.
|
int |
mysql_stmt_errno(Env env,
MysqliStatement stmt)
Returns the error number.
|
StringValue |
mysql_stmt_error(Env env,
MysqliStatement stmt)
Returns a descrption of the error or an empty strng for no error.
|
static int |
mysqli_affected_rows(Env env,
Mysqli conn)
Returns the number of affected rows.
|
static boolean |
mysqli_autocommit(Env env,
Mysqli conn,
boolean mode)
Turns auto-commit on or off.
|
static boolean |
mysqli_bind_param(Env env,
MysqliStatement stmt,
StringValue types,
Value[] params)
|
static boolean |
mysqli_bind_result(Env env,
MysqliStatement stmt,
Value[] outParams)
|
static boolean |
mysqli_change_user(Env env,
Mysqli mysqli,
java.lang.String user,
java.lang.String password,
java.lang.String db)
Changes the user and database.
|
static Value |
mysqli_character_set_name(Env env,
Mysqli conn)
Returns the client encoding.
|
static Value |
mysqli_client_encoding(Env env,
Mysqli conn)
|
static boolean |
mysqli_close(Env env,
Mysqli conn)
Closes a connection.
|
static boolean |
mysqli_commit(Mysqli conn)
Commits the current transaction for the supplied connection.
|
static int |
mysqli_connect_errno(Env env)
Returns an error code value for the last call to mysqli_connect(),
0 for no previous error.
|
static StringValue |
mysqli_connect_error(Env env)
Returns an error description for the last call to mysqli_connect(),
"" for no previous error.
|
static Mysqli |
mysqli_connect(Env env,
StringValue host,
StringValue userName,
StringValue password,
java.lang.String dbname,
int port,
StringValue socket)
Returns a new connection.
|
static Value |
mysqli_data_seek(Env env,
MysqliResult result,
int rowNumber)
Seeks the specified row.
|
static Value |
mysqli_errno(Mysqli conn)
Returns the error code for the most recent function call,
0 for no error.
|
static Value |
mysqli_error(Env env,
Mysqli conn)
Returns the most recent error.
|
static Value |
mysqli_escape_string(Env env,
Mysqli conn,
StringValue unescapedString)
|
static boolean |
mysqli_execute(Env env,
MysqliStatement stmt)
|
static Value |
mysqli_fetch_array(Env env,
MysqliResult result,
int type)
Returns a row for the result.
|
static Value |
mysqli_fetch_assoc(Env env,
MysqliResult result)
Returns an associative array from the result.
|
static Value |
mysqli_fetch_field_direct(Env env,
MysqliResult result,
int fieldOffset)
Returns the field metadata.
|
static Value |
mysqli_fetch_field(Env env,
MysqliResult result)
Returns the field metadata.
|
static Value |
mysqli_fetch_fields(Env env,
MysqliResult result)
Returns an array of field metadata.
|
static Value |
mysqli_fetch_lengths(Env env,
MysqliResult result)
Returns an array of integers respresenting the size of each column
FALSE if an error occurred.
|
static Value |
mysqli_fetch_object(Env env,
MysqliResult result,
java.lang.String className,
Value[] args)
Returns an object with properties that correspond
to the fetched row and moves the data pointer ahead.
|
static Value |
mysqli_fetch_row(Env env,
MysqliResult result)
Returns a row for the result.
|
static Value |
mysqli_fetch(Env env,
MysqliStatement stmt)
Deprecated alias for
mysqli_stmt_fetch(com.caucho.quercus.env.Env, com.caucho.quercus.lib.db.MysqliStatement) . |
static int |
mysqli_field_count(Env env,
Mysqli conn)
Returns the number of columns for the most recent query.
|
static boolean |
mysqli_field_seek(Env env,
MysqliResult result,
int fieldOffset)
Seeks to the specified field offset.
|
static int |
mysqli_field_tell(Env env,
MysqliResult result)
Returns the position of the field cursor used for the last
mysqli_fetch_field() call.
|
static boolean |
mysqli_free_result(MysqliResult result)
Frees a mysqli result
|
static Value |
mysqli_get_charset(Env env,
Mysqli conn) |
static java.lang.String |
mysqli_get_client_info(Env env)
Returns the MySQL client version.
|
static int |
mysqli_get_client_version(Env env)
Returns a number that represents the MySQL client library
version in format:
main_version*10000 + minor_version*100 + sub_version.
|
static Value |
mysqli_get_host_info(Env env,
Mysqli conn)
Returns a string describing the type of MySQL
connection in use.
|
static JdbcResultResource |
mysqli_get_metadata(Env env,
MysqliStatement stmt)
|
static Value |
mysqli_get_proto_info(Mysqli conn)
Return protocol number, for example 10.
|
static Value |
mysqli_get_server_info(Env env,
Mysqli conn)
Returns the MySQL server version.
|
static Value |
mysqli_get_server_version(Env env,
Mysqli conn)
Returns a number that represents the MySQL server version.
|
static Value |
mysqli_info(Env env,
Mysqli conn)
Get information about the most recent query.
|
static Mysqli |
mysqli_init(Env env)
Creates a new mysqli object.
|
static Value |
mysqli_insert_id(Env env,
Mysqli conn)
Returns ID generated for an AUTO_INCREMENT column by the previous
INSERT query on success, 0 if the previous query does not generate
an AUTO_INCREMENT value, or FALSE if no MySQL connection was established
|
static boolean |
mysqli_kill(Env env,
Mysqli conn,
int threadId)
Terminate a Mysql connection with the given thread id.
|
static boolean |
mysqli_more_results(Env env,
Mysqli conn)
Indicates if one or more result sets are available from
a previous call to mysqli_multi_query.
|
static boolean |
mysqli_multi_query(Env env,
Mysqli conn,
StringValue query)
Executes one or multiple queires which are
concatenated by a semicolon.
|
static boolean |
mysqli_next_result(Env env,
Mysqli conn)
Prepares next result set from a previous call to
mysqli_multi_query.
|
static Value |
mysqli_num_fields(MysqliResult result)
Returns the number of fields from specified result set.
|
static Value |
mysqli_num_rows(Env env,
MysqliResult result)
Returns the number of rows in the result set.
|
static boolean |
mysqli_options(Env env,
Mysqli mysqli,
int option,
Value value)
Sets the options for a connection.
|
static int |
mysqli_param_count(Env env,
MysqliStatement stmt)
|
static boolean |
mysqli_ping(Env env,
Mysqli conn)
Checks if the connection is still valid
|
static MysqliStatement |
mysqli_prepare(Env env,
Mysqli conn,
java.lang.String query)
Prepares a statement.
|
static Value |
mysqli_query(Env env,
Mysqli conn,
StringValue sql,
int resultMode)
Executes a query and returns the result.
|
static boolean |
mysqli_real_connect(Env env,
Mysqli mysqli,
StringValue host,
StringValue userName,
StringValue password,
StringValue dbname,
int port,
StringValue socket,
int flags)
Connects to the database.
|
static Value |
mysqli_real_escape_string(Env env,
Mysqli conn,
StringValue unescapedString)
Escapes the following special character in unescapedString.
|
static boolean |
mysqli_real_query(Env env,
Mysqli conn,
StringValue query)
Execute an single query against the database
whose result can then be retrieved
or stored using the mysqli_store_result()
or mysqli_use_result() functions.
|
static boolean |
mysqli_report(Env env,
int flags) |
static boolean |
mysqli_rollback(Mysqli conn)
Rolls back the current transaction for the * connection.
|
static boolean |
mysqli_select_db(Env env,
Mysqli conn,
java.lang.String dbName)
Select the database for a connection.
|
static boolean |
mysqli_set_charset(Env env,
Mysqli conn,
StringValue charset) |
static boolean |
mysqli_set_opt(Env env,
Mysqli mysqli,
int option,
Value value)
|
static Value |
mysqli_sqlstate(Env env,
Mysqli conn)
Returns an error string.
|
static Value |
mysqli_stat(Env env,
Mysqli conn)
Returns a string with the status of the connection
or FALSE if error.
|
static int |
mysqli_stmt_affected_rows(Env env,
MysqliStatement stmt)
Return the number of rows affected by an INSERT, UPDATE, or DELETE
query.
|
static boolean |
mysqli_stmt_bind_param(Env env,
MysqliStatement stmt,
StringValue types,
Value[] params)
Binds variables for the parameter markers
in SQL statement that was passed to
mysqli_prepare(com.caucho.quercus.env.Env, com.caucho.quercus.lib.db.Mysqli, java.lang.String) . |
static boolean |
mysqli_stmt_bind_result(Env env,
MysqliStatement stmt,
Value[] outParams)
Binds outparams to result set.
|
static boolean |
mysqli_stmt_close(Env env,
MysqliStatement stmt)
Closes a statement.
|
Value |
mysqli_stmt_data_seek(Env env,
MysqliStatement stmt,
int offset)
Seeks to a given result.
|
static int |
mysqli_stmt_errno(Env env,
MysqliStatement stmt)
Returns the error code for the prepared statement.
|
static StringValue |
mysqli_stmt_error(Env env,
MysqliStatement stmt)
Returns the error message for the prepared statement.
|
static boolean |
mysqli_stmt_execute(Env env,
MysqliStatement stmt)
Executes a statement that has been prepared using
mysqli_prepare(com.caucho.quercus.env.Env, com.caucho.quercus.lib.db.Mysqli, java.lang.String) . |
static Value |
mysqli_stmt_fetch(Env env,
MysqliStatement stmt)
Fetch results from a prepared statement.
|
static int |
mysqli_stmt_field_count(Env env,
MysqliStatement stmt)
Undocumented
|
static boolean |
mysqli_stmt_free_result(Env env,
MysqliStatement stmt)
Frees the result.
|
static MysqliStatement |
mysqli_stmt_init(Env env,
Mysqli conn)
Returns a statement for use with
mysqli_stmt_prepare(com.caucho.quercus.env.Env, com.caucho.quercus.lib.db.MysqliStatement, java.lang.String) |
static Value |
mysqli_stmt_num_rows(Env env,
MysqliStatement stmt)
Returns the number of rows.
|
static int |
mysqli_stmt_param_count(Env env,
MysqliStatement stmt)
Returns an integer representing the number of parameters
or -1 if no query has been prepared.
|
static boolean |
mysqli_stmt_prepare(Env env,
MysqliStatement stmt,
java.lang.String query)
Prepares a statment with a query.
|
static boolean |
mysqli_stmt_reset(Env env,
MysqliStatement stmt)
Resets a statment.
|
static JdbcResultResource |
mysqli_stmt_result_metadata(Env env,
MysqliStatement stmt)
Returns result information for metadata
|
static Value |
mysqli_stmt_sqlstate(Env env,
MysqliStatement stmt)
Returns an error string.
|
static boolean |
mysqli_stmt_store_result(Env env,
MysqliStatement stmt)
Saves the result.
|
static JdbcResultResource |
mysqli_store_result(Env env,
Mysqli conn)
Transfers the result set from the last query on the
database connection represented by conn.
|
static Value |
mysqli_thread_id(Env env,
Mysqli conn)
Query an identifier that corresponds to this specific
connection.
|
static JdbcResultResource |
mysqli_use_result(Env env,
Mysqli conn)
Initiate a result set retrieval.
|
static int |
mysqli_warning_count(Env env,
Mysqli conn)
Returns the number of warnings from the last query
in the connection object.
|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions
public static final int MYSQLI_ASSOC
public static final int MYSQLI_NUM
public static final int MYSQLI_BOTH
public static final int MYSQLI_USE_RESULT
public static final int MYSQLI_STORE_RESULT
public static final int NOT_NULL_FLAG
public static final int PRI_KEY_FLAG
public static final int UNIQUE_KEY_FLAG
public static final int MULTIPLE_KEY_FLAG
public static final int BLOB_FLAG
public static final int UNSIGNED_FLAG
public static final int ZEROFILL_FLAG
public static final int BINARY_FLAG
public static final int ENUM_FLAG
public static final int AUTO_INCREMENT_FLAG
public static final int TIMESTAMP_FLAG
public static final int SET_FLAG
public static final int NUM_FLAG
public static final int PART_KEY_FLAG
public static final int GROUP_FLAG
public static final int UNIQUE_FLAG
public static final int BINCMP_FLAG
public static final int MYSQLI_TYPE_DECIMAL
public static final int MYSQLI_TYPE_TINY
public static final int MYSQLI_TYPE_SHORT
public static final int MYSQLI_TYPE_LONG
public static final int MYSQLI_TYPE_FLOAT
public static final int MYSQLI_TYPE_DOUBLE
public static final int MYSQLI_TYPE_NULL
public static final int MYSQLI_TYPE_TIMESTAMP
public static final int MYSQLI_TYPE_LONGLONG
public static final int MYSQLI_TYPE_INT24
public static final int MYSQLI_TYPE_DATE
public static final int MYSQLI_TYPE_TIME
public static final int MYSQLI_TYPE_DATETIME
public static final int MYSQLI_TYPE_YEAR
public static final int MYSQLI_TYPE_NEWDATE
public static final int MYSQLI_TYPE_BIT
public static final int MYSQLI_TYPE_NEWDECIMAL
public static final int MYSQLI_TYPE_ENUM
public static final int MYSQLI_TYPE_SET
public static final int MYSQLI_TYPE_TINY_BLOB
public static final int MYSQLI_TYPE_MEDIUM_BLOB
public static final int MYSQLI_TYPE_LONG_BLOB
public static final int MYSQLI_TYPE_BLOB
public static final int MYSQLI_TYPE_VAR_STRING
public static final int MYSQLI_TYPE_STRING
public static final int MYSQLI_TYPE_GEOMETRY
public static final int MYSQLI_TYPE_CHAR
public static final int MYSQLI_TYPE_INTERVAL
public static final int MYSQL_CLIENT_COMPRESS
public static final int MYSQL_CLIENT_IGNORE_SPACE
public static final int MYSQL_CLIENT_INTERACTIVE
public static final int MYSQL_CLIENT_SSL
public static final int MYSQLI_READ_DEFAULT_GROUP
public static final int MYSQLI_READ_DEFAULT_FILE
public static final int MYSQLI_OPT_CONNECT_TIMEOUT
public static final int MYSQLI_OPT_LOCAL_INFILE
public static final int MYSQLI_INIT_COMMAND
public java.lang.String[] getLoadedExtensions()
getLoadedExtensions
in interface QuercusModule
getLoadedExtensions
in class AbstractQuercusModule
public static int mysqli_affected_rows(Env env, Mysqli conn)
public static boolean mysqli_autocommit(Env env, Mysqli conn, boolean mode)
public static boolean mysqli_bind_param(Env env, MysqliStatement stmt, StringValue types, Value[] params)
public static boolean mysqli_commit(Mysqli conn)
public static Value mysqli_character_set_name(Env env, Mysqli conn)
public static Mysqli mysqli_connect(Env env, StringValue host, StringValue userName, StringValue password, java.lang.String dbname, int port, StringValue socket) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public static int mysqli_connect_errno(Env env)
public static StringValue mysqli_connect_error(Env env)
public static Value mysqli_data_seek(Env env, MysqliResult result, int rowNumber)
env
- the PHP executing environmentresult
- the mysqli_resultrowNumber
- the row offsetpublic static Value mysqli_errno(Mysqli conn)
public static Value mysqli_escape_string(Env env, Mysqli conn, StringValue unescapedString)
public static Value mysqli_fetch(Env env, MysqliStatement stmt)
mysqli_stmt_fetch(com.caucho.quercus.env.Env, com.caucho.quercus.lib.db.MysqliStatement)
.public static Value mysqli_fetch_field_direct(Env env, MysqliResult result, int fieldOffset)
public static Value mysqli_fetch_field(Env env, MysqliResult result)
public static Value mysqli_fetch_fields(Env env, MysqliResult result)
public static Value mysqli_fetch_lengths(Env env, MysqliResult result)
env
- the PHP executing environmentresult
- the mysqli_resultpublic static boolean mysqli_field_seek(Env env, MysqliResult result, int fieldOffset)
public static int mysqli_field_tell(Env env, MysqliResult result)
public static boolean mysqli_free_result(MysqliResult result)
public static Value mysqli_insert_id(Env env, Mysqli conn)
public static Value mysqli_num_fields(MysqliResult result)
public static boolean mysqli_multi_query(Env env, Mysqli conn, StringValue query)
public static boolean mysqli_more_results(Env env, Mysqli conn)
public static boolean mysqli_next_result(Env env, Mysqli conn)
public static int mysqli_stmt_errno(Env env, MysqliStatement stmt)
public static StringValue mysqli_stmt_error(Env env, MysqliStatement stmt)
public static int mysqli_field_count(Env env, Mysqli conn)
public static Value mysqli_fetch_array(Env env, MysqliResult result, int type)
public static Value mysqli_fetch_assoc(Env env, MysqliResult result)
public static Value mysqli_fetch_row(Env env, MysqliResult result)
public static Value mysqli_fetch_object(Env env, MysqliResult result, java.lang.String className, Value[] args)
env
- the PHP executing environmentresult
- the mysqli_resultpublic static java.lang.String mysqli_get_client_info(Env env)
public static int mysqli_get_client_version(Env env)
public static Value mysqli_get_host_info(Env env, Mysqli conn)
public static Value mysqli_get_proto_info(Mysqli conn)
public static Value mysqli_get_server_info(Env env, Mysqli conn)
public static Value mysqli_get_server_version(Env env, Mysqli conn)
public static Value mysqli_num_rows(Env env, MysqliResult result)
env
- the PHP executing environmentresult
- the mysqli_resultpublic static boolean mysqli_options(Env env, Mysqli mysqli, int option, Value value)
public static boolean mysqli_set_opt(Env env, Mysqli mysqli, int option, Value value)
public static int mysqli_param_count(Env env, MysqliStatement stmt)
public static boolean mysqli_rollback(Mysqli conn)
public static Value mysqli_stmt_num_rows(Env env, MysqliStatement stmt)
public static int mysqli_stmt_param_count(Env env, MysqliStatement stmt)
public static boolean mysqli_stmt_prepare(Env env, MysqliStatement stmt, java.lang.String query)
public static boolean mysqli_stmt_reset(Env env, MysqliStatement stmt)
public static JdbcResultResource mysqli_stmt_result_metadata(Env env, MysqliStatement stmt)
public static Value mysqli_stmt_sqlstate(Env env, MysqliStatement stmt)
public static boolean mysqli_stmt_store_result(Env env, MysqliStatement stmt)
public static JdbcResultResource mysqli_store_result(Env env, Mysqli conn)
mysqli_multi_query(com.caucho.quercus.env.Env, com.caucho.quercus.lib.db.Mysqli, com.caucho.quercus.env.StringValue)
public static JdbcResultResource mysqli_use_result(Env env, Mysqli conn)
public static int mysqli_warning_count(Env env, Mysqli conn)
public static boolean mysqli_ping(Env env, Mysqli conn)
public static Value mysqli_query(Env env, Mysqli conn, StringValue sql, int resultMode)
public static boolean mysqli_real_connect(Env env, Mysqli mysqli, StringValue host, StringValue userName, StringValue password, StringValue dbname, int port, StringValue socket, int flags)
public static Value mysqli_real_escape_string(Env env, Mysqli conn, StringValue unescapedString)
public static boolean mysqli_real_query(Env env, Mysqli conn, StringValue query)
public static boolean mysqli_select_db(Env env, Mysqli conn, java.lang.String dbName)
public static Value mysqli_stat(Env env, Mysqli conn)
public static int mysqli_stmt_affected_rows(Env env, MysqliStatement stmt)
public static boolean mysqli_stmt_bind_param(Env env, MysqliStatement stmt, StringValue types, Value[] params)
mysqli_prepare(com.caucho.quercus.env.Env, com.caucho.quercus.lib.db.Mysqli, java.lang.String)
.
Type specification chars:
public static boolean mysqli_stmt_bind_result(Env env, MysqliStatement stmt, Value[] outParams)
public boolean mysql_stmt_close(Env env, MysqliStatement stmt)
public Value mysqli_stmt_data_seek(Env env, MysqliStatement stmt, int offset)
public int mysql_stmt_errno(Env env, MysqliStatement stmt)
public StringValue mysql_stmt_error(Env env, MysqliStatement stmt)
public static boolean mysqli_stmt_execute(Env env, MysqliStatement stmt)
mysqli_prepare(com.caucho.quercus.env.Env, com.caucho.quercus.lib.db.Mysqli, java.lang.String)
.public static Value mysqli_stmt_fetch(Env env, MysqliStatement stmt)
public static boolean mysqli_stmt_free_result(Env env, MysqliStatement stmt)
public static boolean mysqli_bind_result(Env env, MysqliStatement stmt, Value[] outParams)
public static boolean mysqli_change_user(Env env, Mysqli mysqli, java.lang.String user, java.lang.String password, java.lang.String db)
public static boolean mysqli_execute(Env env, MysqliStatement stmt)
public static JdbcResultResource mysqli_get_metadata(Env env, MysqliStatement stmt)
public static MysqliStatement mysqli_prepare(Env env, Mysqli conn, java.lang.String query)
public static boolean mysqli_stmt_close(Env env, MysqliStatement stmt)
public static MysqliStatement mysqli_stmt_init(Env env, Mysqli conn)
mysqli_stmt_prepare(com.caucho.quercus.env.Env, com.caucho.quercus.lib.db.MysqliStatement, java.lang.String)
public static Value mysqli_info(Env env, Mysqli conn)
public static int mysqli_stmt_field_count(Env env, MysqliStatement stmt)
public static Value mysqli_thread_id(Env env, Mysqli conn)
public static boolean mysqli_kill(Env env, Mysqli conn, int threadId)
public static boolean mysqli_report(Env env, int flags)
public static boolean mysqli_set_charset(Env env, Mysqli conn, StringValue charset)