public static function executeBulk(BulkHandler $bulkHandler, string $query): void
  {
    self::realQuery($query);

    $bulkHandler->start();

    $result = self::$mysqli->use_result();
    while (($row = $result->fetch_assoc()))
    {
      $bulkHandler->row($row);
    }
    $result->free();

    $bulkHandler->stop();

    if (self::$mysqli->more_results()) self::$mysqli->next_result();
  }
public static function executeBulk(BulkHandler $bulkHandler, string $query): void
  {
    self::realQuery($query);

    $bulkHandler->start();

    $result = self::$mysqli->use_result();
    while (($row = $result->fetch_assoc()))
    {
      $bulkHandler->row($row);
    }
    $result->free();

    $bulkHandler->stop();

    if (self::$mysqli->more_results()) self::$mysqli->next_result();
  }
public static function executeBulk ( BulkHandler $ bulkHandler , string $ query ) : void { self :: realQuery ( $ query ) ; $ bulkHandler -> start ( ) ; $ result = self :: $ mysqli -> use_result ( ) ; while ( ( $ row = $ result -> fetch_assoc ( ) ) ) { $ bulkHandler -> row ( $ row ) ; } $ result -> free ( ) ; $ bulkHandler -> stop ( ) ; if ( self :: $ mysqli -> more_results ( ) ) self :: $ mysqli -> next_result ( ) ; }
Executes a query using a bulk handler.

@param BulkHandler $bulkHandler The bulk handler.
@param string      $query       The SQL statement.

@since 1.0.0
@api
Executes a query using a bulk handler .