for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Manticoresearch\Endpoints\Nodes;
use Manticoresearch\Endpoints\EmulateBySql;
class Threads extends EmulateBySql
{
/**
* @var string
*/
protected $index;
public function setBody($params = null)
$options = [];
if (count($params) > 2) {
foreach (array_splice($params, 2) as $name => $value) {
$options[] = "$value=$name";
}
return parent::setBody(['query' => "SHOW THREADS " .
((count($options)>0)?' OPTION '.implode(",", $options):'')]);