Documentation

Driver extends AbstractSQLiteDriver
in package

The PDO Sqlite driver.

Tags
since
2.0

Table of Contents

$_userDefinedFunctions  : array<string|int, mixed>
connect()  : mixed
{@inheritdoc}
convertException()  : DriverException
Converts a given DBAL driver exception into a standardized DBAL driver exception.
getDatabase()  : string
Gets the name of the database connected to for this driver.
getDatabasePlatform()  : AbstractPlatform
Gets the DatabasePlatform instance that provides all the metadata about the platform this driver connects to.
getName()  : mixed
{@inheritdoc}
getSchemaManager()  : AbstractSchemaManager
Gets the SchemaManager that can be used to inspect and change the underlying database schema of the platform this driver connects to.
_constructPdoDsn()  : string
Constructs the Sqlite PDO DSN.

Properties

$_userDefinedFunctions

protected array<string|int, mixed> $_userDefinedFunctions = array('sqrt' => array('callback' => array('Doctrine\DBAL\Platforms\SqlitePlatform', 'udfSqrt'), 'numArgs' => 1), 'mod' => array('callback' => array('Doctrine\DBAL\Platforms\SqlitePlatform', 'udfMod'), 'numArgs' => 2), 'locate' => array('callback' => array('Doctrine\DBAL\Platforms\SqlitePlatform', 'udfLocate'), 'numArgs' => -1))

Methods

connect()

{@inheritdoc}

public connect(array<string|int, mixed> $params[, mixed $username = null ][, mixed $password = null ][, array<string|int, mixed> $driverOptions = array() ]) : mixed
Parameters
$params : array<string|int, mixed>
$username : mixed = null
$password : mixed = null
$driverOptions : array<string|int, mixed> = array()
Return values
mixed

getDatabase()

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

public getDatabase(Connection $conn) : string
Parameters
$conn : Connection
Return values
string

The name of the database.

getName()

{@inheritdoc}

public getName() : mixed
Return values
mixed

_constructPdoDsn()

Constructs the Sqlite PDO DSN.

protected _constructPdoDsn(array<string|int, mixed> $params) : string
Parameters
$params : array<string|int, mixed>
Return values
string

The DSN.

Search results