sfMySQLDatabase provides connectivity for the MySQL brand database.
Method Details
-
(bool) selectDatabase ($database)
| $database |
Name of database to be connected |
Selects the database to be used in this connection
returns true if this was successful
-
shutdown ()
Execute the shutdown procedure
throws sfDatabaseException If an error occurs while shutting down this database
-
connect ()
Connects to the database.
throws sfDatabaseException If a connection could not be created
-
(string) getConnectMethod ($persistent)
| $persistent |
wether persistent connections are use or not |
Returns the appropriate connect method.
returns name of connect method.
-
(array&) loadParameters ([[[amp]]]$array)
Loads connection parameters from an existing array.
returns An associative array of connection parameters
|