/** * @see Yun_Db_Adapter_Interface::commit() */ public function commit() { if (null === $this->pdo) { return false; } $re = $this->pdo->commit(); if (false === $re) { $this->setPdoError(); } return $re; }
static function transaction(callable $transaction) { self::$inst->beginTransaction(); $queue = $transaction(); if ($queue) { self::$inst->commit(); return $queue; } self::$inst->rollBack(); return false; }
public function commit() { try { return parent::commit(); } catch (\PDOException $e) { throw new \limepie\db\exception($e); } }