atk4\data\Persistence_SQL::atomic PHP Method

atomic() public method

Atomic executes operations within one begin/end transaction, so if the code inside callback will fail, then all of the transaction will be also rolled back.
public atomic ( callable $f ) : mixed
$f callable
return mixed
    public function atomic($f)
    {
        return $this->connection->atomic($f);
    }