Implements interfaces:
Connessione MySQL.
Esegue la connessione ad un database, in questo caso specifico MySQL. Permette di connettersi direttamente al DB predefinito se non vengono specificati parametri diversi.
Located in /sylar/classes/common/db/mysql/MysqlDriver.php (line 45)
Class | Description |
---|---|
![]() |
Sql layer for Logger |
![]() |
Bind SimpleTable to DBTable |
Param container it's an array that contains all information on DB connection.
Constructor.
It loads the configuration info for database from config file
Destructor.
Affected Row.
Get the number of affected rows by the last INSERT, UPDATE, REPLACE or DELETE query on error return false
Open a connection.
Open a connect to Database MySQL adn return the resource to MySQL connection or FALSE on failure.
Close the connection.
It close the connection to Db if opened.
Exec a SQL query.
The connection to database must be opened. It exec a query and return MySQL result resource, or FALSE on error.
It also return a boolean value if the query is an update/insert/delete
connect exec and disconnect open connection, exec query and close the connection.
It connect to database and execute the query. It returns a resurse result
read a row in an array.
returns an array with all field of row in associative indices Array with columns name
read a row in an array.
returns an array with all field of row in number indices Array
Get the last ID.
it returns the ID generated for an AUTO_INCREMENT column by the previous INSERT query on success On error returns false
Check connection status Return true if the connection with database is up, false otherwise.
Escapes string for use in SQL.
It escapes special characters in a string for use in a SQL statement
It returns a string with escape character, on errore returns false
Read a particoular value.
returns the value of the field named $fieldName at row $rowNumber
Reset Results
It resets all data in the result variables.
total rows number.
the number of rows returned by a query like select
Set Connection Info Retrive and load the connection info from configuration file
Documentation generated on Thu, 24 Apr 2008 16:14:19 +0200 by phpDocumentor 1.3.0RC3