Doctrine


Doctrine\DBAL\Driver
/Doctrine/DBAL/Driver.php at line 11

Interface Driver

Driver

public interface Driver

Driver interface. Interface that all DBAL drivers must implement.

Since:
2.0

Method Summary
Doctrine\DBAL\Driver\Connection

connect(array params, string username, string password, array driverOptions)

Attempts to create a connection with the database.

string

getDatabase(Doctrine\DBAL\Connection conn)

Get the name of the database connected to for this driver.

Doctrine\DBAL\Platforms\AbstractPlatform

getDatabasePlatform()

Gets the DatabasePlatform instance that provides all the metadata about the platform this driver connects to.

string

getName()

Gets the name of the driver.

Doctrine\DBAL\SchemaManager

getSchemaManager(Doctrine\DBAL\Connection conn)

Gets the SchemaManager that can be used to inspect and change the underlying database schema of the platform this driver connects to.

Method Detail

/Doctrine/DBAL/Driver.php at line 22

connect

public Doctrine\DBAL\Driver\Connection connect(array params, string username, string password, array driverOptions)

Attempts to create a connection with the database.

Parameters:
params - All connection parameters passed by the user.
username - The username to use when connecting.
password - The password to use when connecting.
driverOptions - The driver options to use when connecting.
Returns:
The database connection.

/Doctrine/DBAL/Driver.php at line 54

getDatabase

public string getDatabase(Doctrine\DBAL\Connection conn)

Get the name of the database connected to for this driver.

Returns:
$database

/Doctrine/DBAL/Driver.php at line 30

getDatabasePlatform

public Doctrine\DBAL\Platforms\AbstractPlatform getDatabasePlatform()

Gets the DatabasePlatform instance that provides all the metadata about the platform this driver connects to.

Returns:
The database platform.

/Doctrine/DBAL/Driver.php at line 46

getName

public string getName()

Gets the name of the driver.

Returns:
The name of the driver.

/Doctrine/DBAL/Driver.php at line 39

getSchemaManager

public Doctrine\DBAL\SchemaManager getSchemaManager(Doctrine\DBAL\Connection conn)

Gets the SchemaManager that can be used to inspect and change the underlying database schema of the platform this driver connects to.


Doctrine