Implements interfaces:
Implements the interface for Server Driver, which:
Given connection credentials, it gives read-only access to seeing what databases, tables, and columns are available.
Example usage:
$server = new MysqlServer(); $server->loadDatabases(); print_r($server->getDatabases());
Example usage to get just one database:
$server = new MysqlServer(); $server->loadDatabase('db_name'); print_r($dba->getDatabase('db_name'));
Located in /schema_generator/database/drivers/mysql/MysqlServer.class.php (line 24)
Schema | --MysqlServer
Inherited from Schema
Schema::$databases
Construct with a DSN, an array containing host, user, pass, and port (optional).
For example:
$dsn = array( 'host' => '127.0.0.1', 'user' => 'nobody', 'pass' => '', 'port' => 3306 );
$server = new MysqlServer($dsn);
Get a list of available database names.
Load a specific database schema into memory.
Load all database schemas for the currently connected server into memory.
(will only load databases that the user/pass has privileges to see)
Inherited From Schema
Schema::addDatabase()
Schema::getDatabase()
Schema::getDatabases()
Schema::getNumberOfHasManyRelationships()
Schema::getNumberOfHasOneRelationships()
Schema::linkRelationships()
Schema::outputRelationshipCounts()
Documentation generated on Wed, 12 Nov 2008 21:56:19 -0600 by phpDocumentor 1.4.0