SQLiteConnector
class SQLiteConnector extends Connector implements ConnectorInterface
Traits
Properties
| protected array | $options | The default PDO connection options. |
from Connector |
Methods
Determine if the given exception was caused by a lost connection.
Create a new PDO connection.
Create a new PDO connection instance.
Handle an exception that occurred during connect execution.
Get the absolute database path.
Enable or disable foreign key constraints if configured.
Details
in
DetectsLostConnections at line 16
protected bool
causedByLostConnection(Throwable $e)
Determine if the given exception was caused by a lost connection.
in
Connector at line 36
PDO
createConnection(string $dsn, array $config, array $options)
Create a new PDO connection.
in
Connector at line 67
protected PDO
createPdoConnection(string $dsn, string|null $username, string|null $password, array $options)
Create a new PDO connection instance.
in
Connector at line 87
protected PDO
tryAgainIfCausedByLostConnection(Throwable $e, string $dsn, string|null $username, string|null $password, array $options)
Handle an exception that occurred during connect execution.
in
Connector at line 99
array
getOptions(array $config)
Get the PDO options based on the configuration.
in
Connector at line 109
array
getDefaultOptions()
Get the default PDO connection options.
in
Connector at line 117
void
setDefaultOptions(array $options)
Set the default PDO connection options.
in
Connector at line 125
protected int|null
getLockTimeout(array $config)
Get the configured lock timeout in seconds.
at line 20
PDO
connect(array $config)
Establish a database connection.
at line 50
protected string
parseDatabasePath(string $path)
Get the absolute database path.
at line 84
protected void
configurePragmas(PDO $connection, array $config)
Set miscellaneous user-configured pragmas.
at line 98
protected void
configureForeignKeyConstraints(PDO $connection, array $config)
Enable or disable foreign key constraints if configured.
at line 112
protected void
configureBusyTimeout(PDO $connection, array $config)
Set the busy timeout if configured.
at line 124
protected void
configureJournalMode(PDO $connection, array $config)
Set the journal mode if configured.
at line 136
protected void
configureSynchronous(PDO $connection, array $config)
Set the synchronous mode if configured.