lithium\data\source\database\adapter\Sqlite3::__construct()
Overrides
lithium\core\Object::__construct()
Constructor.
Parameters
-
array
$config
The available configuration options are the following. Further options are inherited from the parent classes. Typically, these parameters are set in
Connections::add()
, when adding the adapter to the list of active connections.'database'
string: Can be either a path to a database file or the special':memory'
string. Defaults to in-memory database':memory:'
.
Returns
voidSource
public function __construct(array $config = []) {
$defaults = ['database' => ':memory:'];
parent::__construct($config + $defaults);
}