コード例 #1
0
 private function runMigrationSQL($path, $method = 'up')
 {
     $migrator = $this->loadMigrationClass($path);
     $this->databaseAPI->connection()->transaction(function () use($migrator, $method) {
         $migrator->{$method}();
     });
 }
コード例 #2
0
 /**
  * Quotes a value for insertion into an SQL query, according to the database engine quoting rules.
  *
  * @param mixed $value
  * @return string
  */
 protected function quote($value)
 {
     return $this->db->connection()->getPdo()->quote($value);
 }
コード例 #3
0
 protected function rollback()
 {
     $this->db->connection()->rollBack();
 }