sfMySQLiDatabase provides connectivity for the MySQL brand database.
Method Summary
-
string
getConnectMethod($persistent)
Returns the appropriate connect method.
-
bool
selectDatabase($database)
Selects the database to be used in this connection
-
shutdown()
Execute the shutdown procedure
& , connect , getConnectMethod , selectDatabase , shutdown
Methods inherited from sfDatabase
connect , getConnection , getParameter , getParameterHolder , getResource , hasParameter , initialize , setParameter , shutdown , __construct
Method Details
-
(string) getConnectMethod ($persistent)
Browse code
| $persistent |
Whether persistent connections are use or not The MySQLi driver does not support persistent connections so this argument is ignored. |
Returns the appropriate connect method.
returns name of connect method
-
(bool) selectDatabase ($database)
Browse code
| $database |
Name of database to be connected |
Selects the database to be used in this connection
returns true if this was successful
-
Execute the shutdown procedure
throws sfDatabaseException If an error occurs while shutting down this database
|