public function execute()
	{
		// Check connection
		$this->hasConnectionOrFail();

		// Capture the start time
		$start = microtime(true);

		// Execute the query
		try
		{
			$this->statement->execute();
		}
		catch (\PDOException $e)
		{
			// @FIXME: this should honor error reporting settings
			throw new QueryFailedException($e->getMessage(), 500, $e);
		}

		if ($this->debug)
		{
			// Log it
			$this->log(microtime(true) - $start);
		}

		return $this;
	}
public function execute()
	{
		// Check connection
		$this->hasConnectionOrFail();

		// Capture the start time
		$start = microtime(true);

		// Execute the query
		try
		{
			$this->statement->execute();
		}
		catch (\PDOException $e)
		{
			// @FIXME: this should honor error reporting settings
			throw new QueryFailedException($e->getMessage(), 500, $e);
		}

		if ($this->debug)
		{
			// Log it
			$this->log(microtime(true) - $start);
		}

		return $this;
	}
public function execute ( ) { // Check connection $ this -> hasConnectionOrFail ( ) ; // Capture the start time $ start = microtime ( true ) ; // Execute the query try { $ this -> statement -> execute ( ) ; } catch ( \ PDOException $ e ) { // @FIXME: this should honor error reporting settings throw new QueryFailedException ( $ e -> getMessage ( ) , 500 , $ e ) ; } if ( $ this -> debug ) { // Log it $ this -> log ( microtime ( true ) - $ start ) ; } return $ this ; }
Executes the SQL statement

@return  $this
@since   2.0.0
@throws  QueryFailedException
Executes the SQL statement