code: public function transaction(callable $callback): void
      {
          $this->pdo->beginTransaction();
          $callback($this);
          $this->pdo->commit();
      }
docs: Wraps the queries inside callback into transaction.
  
  @param callable $callback
  @return void