Esempio n. 1
0
 /**
  * Constructor.
  *
  * @param \PDO  $pdo
  * @param array $options Array of options.
  */
 public function __construct(\PDO $pdo, array $options = null)
 {
     // Set some SQLite PRAGMA to speed things up.
     // @see http://www.sqlite.org/pragma.html
     // @see http://stackoverflow.com/questions/1711631/how-do-i-improve-the-performance-of-sqlite
     $pdo->exec('PRAGMA synchronous=OFF');
     $pdo->exec('PRAGMA journal_mode=MEMORY');
     $pdo->exec('PRAGMA temp_store=MEMORY');
     $pdo->exec('PRAGMA count_changes=false');
     parent::__construct($pdo, $options);
 }
Esempio n. 2
0
 /**
  * Constructor.
  *
  * @param \PDO  $pdo
  * @param array $options Array of options.
  */
 public function __construct(\PDO $pdo, array $options = null)
 {
     parent::__construct($pdo, $options);
 }