|
Connect to a database and log in as the specified user.
Returns TRUE on success, SQLException on error. Reimplemented in MSSQLConnection, MySQLConnection, OCI8Connection, PgSQLConnection, and SQLiteConnection. |
|
Get the PHP native resource for the database connection/link. Returns resource Reimplemented in ConnectionCommon. |
|
Get any flags that were passed to connection. Returns int Reimplemented in ConnectionCommon. |
|
Get the DSN array used by connect() method to connect to database. See also connect() Returns array Reimplemented in ConnectionCommon. |
|
Gets a DatabaseInfo class for the current database. This is not modeled on the JDBC MetaData class, but provides a possibly more useful metadata system. All the same, there may eventually be a getMetaData() which returns a class that behaves like JDBC's DatabaseMetaData.
Returns DatabaseInfo Reimplemented in MSSQLConnection, MySQLConnection, OCI8Connection, and PgSQLConnection. |
|
Loads and returns an IdGenerator object for current RDBMS. Returns IdGenerator Reimplemented in MSSQLConnection, MySQLConnection, OCI8Connection, and PgSQLConnection. |
|
Prepares a query for multiple execution with execute(). With some database backends, this is emulated. prepare() requires a generic query as string like "INSERT INTO numbers VALUES(?,?,?)". The ? are placeholders. IMPORTANT: All occurrences of the placeholder (?) will be assumed to be a parameter. Therefore be sure not to have ? anywhere else in the query. So, ... DO NOT MIX WILDCARDS WITH ALREADY-PREPARED QUERIES INCORRECT: SELECT * FROM mytable WHERE id = ? AND title = 'Where are you?' and body LIKE ? CORRECT: SELECT * FROM mytable WHERE id = ? AND title = ? and body LIKE ?
Returns PreparedStatement
See also PreparedStatement::execute() Reimplemented in MSSQLConnection, OCI8Connection, and PgSQLConnection. |
|
Creates a new empty Statement. Returns Statement Reimplemented in MSSQLConnection, MySQLConnection, OCI8Connection, and PgSQLConnection. |
|
If RDBMS supports native LIMIT/OFFSET then query SQL is modified so that no emulation is performed in ResultSet.
Returns void
Reimplemented in ConnectionCommon, MSSQLConnection, and OCI8Connection. |
|
Executes the SQL query in this PreparedStatement object and returns the resultset.
Returns object ResultSet
Reimplemented in MSSQLConnection, MySQLConnection, OCI8Connection, and PgSQLConnection. |
|
Executes the SQL INSERT, UPDATE, or DELETE statement.
Returns int Number of affected rows (or 0 for drivers that return nothing).
Reimplemented in MSSQLConnection, MySQLConnection, OCI8Connection, PgSQLConnection, and SQLiteConnection. |
|
Creates a CallableStatement object for calling database stored procedures.
Returns CallableStatement Reimplemented in MSSQLConnection, OCI8Connection, and PgSQLConnection. |
|
Free the db resources. Returns void Reimplemented in MSSQLConnection, MySQLConnection, OCI8Connection, PgSQLConnection, and SQLiteConnection. |
|
Get auto-commit status.
Returns boolean Reimplemented in ConnectionCommon. |
|
Enable/disable automatic commits. Pushes SQLWarning onto $warnings stack if the autocommit value is being changed mid-transaction. This function is overridden by driver classes so that they can perform the necessary begin/end transaction SQL. If auto-commit is being set to TRUE, then the current transaction will be committed immediately.
Returns void Reimplemented in ConnectionCommon. |
|
Commits statements in a transaction.
Returns TRUE on success, SQLException on error. Reimplemented in MSSQLConnection, MySQLConnection, OCI8Connection, PgSQLConnection, and SQLiteConnection. |
|
Rollback changes in a transaction.
Returns TRUE on success, SQLException on error. Reimplemented in MSSQLConnection, MySQLConnection, OCI8Connection, PgSQLConnection, and SQLiteConnection. |
|
Gets the number of rows affected by the data manipulation query.
Returns int Number of rows affected by the last query. Reimplemented in MSSQLConnection, MySQLConnection, OCI8Connection, PgSQLConnection, and SQLiteConnection. |
This file is part of the Creole[php4] library.
Copyright © 2004 Hans Lellelid |   |
Creole[php4] CVS
|