SQLiteConnector

class SQLiteConnector extends Connector implements ConnectorInterface (View source)

Traits

DetectsLostConnections

Properties

protected array $options The default PDO connection options. from Connector

Methods

bool causedByLostConnection(Exception $e)

Determine if the given exception was caused by a lost connection.

from DetectsLostConnections
array getOptions(array $config)

Get the PDO options based on the configuration.

from Connector
PDO createConnection(string $dsn, array $config, array $options)

Create a new PDO connection.

from Connector
array getDefaultOptions()

Get the default PDO connection options.

from Connector
void setDefaultOptions(array $options)

Set the default PDO connection options.

from Connector
PDO tryAgainIfCausedByLostConnection(Exception $e, string $dsn, string $username, string $password, array $options)

Handle a exception that occurred during connect execution.

from Connector
PDO connect(array $config)

Establish a database connection.

Details

protected bool causedByLostConnection(Exception $e)

Determine if the given exception was caused by a lost connection.

Parameters

Exception $e

Return Value

bool

array getOptions(array $config)

Get the PDO options based on the configuration.

Parameters

array $config

Return Value

array

PDO createConnection(string $dsn, array $config, array $options)

Create a new PDO connection.

Parameters

string $dsn
array $config
array $options

Return Value

PDO

array getDefaultOptions()

Get the default PDO connection options.

Return Value

array

void setDefaultOptions(array $options)

Set the default PDO connection options.

Parameters

array $options

Return Value

void

protected PDO tryAgainIfCausedByLostConnection(Exception $e, string $dsn, string $username, string $password, array $options)

Handle a exception that occurred during connect execution.

Parameters

Exception $e
string $dsn
string $username
string $password
array $options

Return Value

PDO

Exceptions

Exception

PDO connect(array $config)

Establish a database connection.

Parameters

array $config

Return Value

PDO

Exceptions

InvalidArgumentException

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Database/Connectors/SQLiteConnector.html