Constructs the Sqlite adapter

Parameters

  • array $config Configuration options for this class. For additional configuration, see `lithium\data\source\Database` and `lithium\data\Source`. Available options defined by this class: - `'database'` _string_: database name. Defaults to none - `'flags'` _integer_: Optional flags used to determine how to open the SQLite database. By default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE. - `'key'` _string_: An optional encryption key used when encrypting and decrypting an SQLite database. Typically, these parameters are set in `Connections::add()`, when adding the adapter to the list of active connections.

Source

						public function __construct(array $config = array()) {
		$defaults = array(
			'database'   => '',
			'flags'      => SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE,
			'key'        => null
		);
		parent::__construct($config + $defaults);
	}