various refactorings.
This commit is contained in:
@@ -30,6 +30,10 @@ class SQLite extends Connector {
|
||||
{
|
||||
$options = $this->options($config);
|
||||
|
||||
// SQLite provides supported for "in-memory" databases, which exist only for the
|
||||
// lifetime of the request. Any given in-memory database may only have one PDO
|
||||
// connection open to it at a time. Generally, these databases are use for
|
||||
// testing and development purposes, not in production scenarios.
|
||||
if ($config['database'] == ':memory:')
|
||||
{
|
||||
return new PDO('sqlite::memory:', null, null, $options);
|
||||
|
||||
Reference in New Issue
Block a user