Commit transaction or savepoint.

@return static $this
324001
function commit() {
		$this->savepoint--;

		if ($this->savepoint == 0) {
			if ( ! \mysqli_commit($this->dbh)) {
				throw new Panic('Failed to commit transaction');
			}
		}
		else { // not finished with transaction yet
			\mysqli_query($this->dbh, 'RELEASE SAVEPOINT save'.$this->savepoint);
		}

		return $this;
	}
957581
public function commit()
    {
        foreach ($this->transaction as $trans) {
            $this->internalLog($trans['level'], $trans['message'], $trans['time'], $trans['context']);
        }

        $this->rollback();
    }
948230
public function commit() {
		if (!$this->inTransaction()) {
			throw new Exception('There is no active transaction');
		}

		$res = @oci_commit($this->_dbh);
		$this->checkError($res);

		$this->_inTransaction = false;
		$this->_commitMode = null;

		return $res;
	}
1168446
private static function commit()
    {
        $transaction = env('SIMPLES_TRANSACTION_CLASS', '\\Simples\\Persistence\\Transaction');
        if (!class_exists($transaction)) {
            return;
        }

        if (!method_exists($transaction, 'commit')) {
            throw new ErrorException("The transaction commit method was not found");
        }

        /** @noinspection PhpUnnecessaryFullyQualifiedNameInspection, PhpUndefinedMethodInspection */
        if (!$transaction::commit()) {
            throw new ErrorException("Transaction can't commit the changes");
        }
    }
622782
public function transactionCommit($toSavepoint = false)
	{
		if (!$toSavepoint || $this->transactionDepth <= 1)
		{
			$this->connect();

			if ($this->connection->commit())
			{
				$this->transactionDepth = 0;
			}

			return;
		}

		$this->transactionDepth--;
	}
863985
public function commitTransaction()
    {
        // fire model save again, to give Laravel app final chance to finalise anything that needs finalising after
        // batch processing
        foreach (self::$touchList as $model) {
            $model->save();
        }

        DB::commit();
        self::$touchList = [];
        self::$inBatch = false;
    }
229702
protected function transactionCommit() {
		$this->transactionCounter--;
		if ( $this->transactionCounter == 0 ) {
			return $this->dbh->commit();
		}
		return $this->transactionCounter >= 0;
	}
314512
public function save()
    {
        if (true === $this->getState()->is('deleted')) {
            return $this;
        }
        $this->store->commit($this);
        return $this;
    }
544459
public function commit(Context $context = null)
    {
        $this->getDBQueryBuilder($context)->go(null, 'commit');
        return $this;
    }
349608
public function commit()
    {
        if ($this->committed) {
            throw new CommandException('The prepared transaction has already been commited');
        }

        $response = Client::commitPreparedTransaction($this);
        $this->committed = true;

        return $response;
    }
1173552
protected function _commit()
    {
        $this->_connect();
        $this->_connection->commit();
        $this->_connection->autocommit(true);
    }
1020846
public function commit()
    {
        $this->assert();

        $current = $this->current;
        $this->current = $current->getParentKeepingChildren();

        if (!$this->current instanceof Transaction) {
            // There are no transactions, dispatch all reserved payloads
            foreach ($current->flatten() as $payload) {
                $payload->fire();
            }
        }
    }
842109
public function commit()
    {
        $this->commiting = true;

        foreach ($this->differed as $key => $item) {
            $this->save($item);

            if ($item->isHit()) {
                unset($this->differed[$key]);
            }
        }

        $result = !count($this->differed);

        $this->commiting = false;

        return $result;
    }
1230710
public function commit()
    {
        try {
            $this->connection->commit();
        } catch (DBALException $e) {
            throw new OrmException("Unable to commit changes.\n" . $e->getMessage(), 0, $e);
        }
    }
1248565
public function commit()
    {
        --$this->currentTransactionLevel;
        if ($this->currentTransactionLevel == 0 || !$this->nestable()) {
            parent::commit();
        } else {
            $this->exec("RELEASE SAVEPOINT LEVEL{$this->currentTransactionLevel}");
        }
    }
838257
public function commit() {
		if ($this->_transactionDepth === 0) {
			throw new PDOException('Rollback error : There is no transaction started');
		}

		$this->_transactionDepth--;

		if ($this->_transactionDepth === 0) {
			parent::commit();
		} else {
			$this->exec("RELEASE SAVEPOINT LEVEL{$this->_transactionDepth}");
		}
	}
1225341
public function commit() {
		if ($this->txStatus == self::TX_STARTED && $this->txCounter == 1) {
			$this->txStatus = self::TX_NOT_STARTED;
			$this->txCounter = 0;
			return $this->driver->commit();
		}
		
		$this->txCounter--;
		return false;
	}