/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Datasource
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Datasource/ConnectionInterface.php (5106B)
transactional(function ($connection) {
* $connection->newQuery()->delete('users')->execute();
* });
* ```
*
* @param callable $transaction The callback to execute within a transaction.
* @return mixed The return value of the callback.
* @throws \Exception Will re-throw any exception raised in $callback after
* rolling back the transaction.
*/
public function transactional(callable $transaction);
/**
* Run an operation with constraints disabled.
*
* Constraints should be re-enabled after the callback succeeds/fails.
*
* ### Example:
*
* ```
* $connection->disableConstraints(function ($connection) {
* $connection->newQuery()->delete('users')->execute();
* });
* ```
*
* @param callable $operation The callback to execute within a transaction.
* @return mixed The return value of the callback.
* @throws \Exception Will re-throw any exception raised in $callback after
* rolling back the transaction.
*/
public function disableConstraints(callable $operation);
/**
* Enable/disable query logging
*
* @param bool $value Enable/disable query logging
* @return $this
*/
public function enableQueryLogging(bool $value = true);
/**
* Disable query logging
*
* @return $this
*/
public function disableQueryLogging();
/**
* Check if query logging is enabled.
*
* @return bool
*/
public function isQueryLoggingEnabled(): bool;
}