class Driver implements Driver (View source)

The PDO Sqlite driver.

Properties

protected array $_userDefinedFunctions

Methods

connect(array $params, string $username = null, string $password = null, array $driverOptions = array())

Tries to establish a database connection to SQLite.

string
_constructPdoDsn(array $params)

Constructs the Sqlite PDO DSN.

getDatabasePlatform()

Gets the database platform that is relevant for this driver.

getSchemaManager(Connection $conn)

Gets the schema manager that is relevant for this driver.

string
getName()

Gets the name of the driver.

string
getDatabase(Connection $conn)

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

Details

Connection connect(array $params, string $username = null, string $password = null, array $driverOptions = array())

Tries to establish a database connection to SQLite.

Parameters

array $params All connection parameters passed by the user.
string $username The username to use when connecting.
string $password The password to use when connecting.
array $driverOptions The driver options to use when connecting.

Return Value

Connection The database connection.

protected string _constructPdoDsn(array $params)

Constructs the Sqlite PDO DSN.

Parameters

array $params

Return Value

string The DSN.

AbstractPlatform getDatabasePlatform()

Gets the database platform that is relevant for this driver.

Return Value

AbstractPlatform The database platform.

AbstractSchemaManager getSchemaManager(Connection $conn)

Gets the schema manager that is relevant for this driver.

Parameters

Connection $conn

Return Value

AbstractSchemaManager

string getName()

Gets the name of the driver.

Return Value

string The name of the driver.

string getDatabase(Connection $conn)

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

Parameters

Connection $conn

Return Value

string $database