public function run(Client $client) { $schema = $client->getSpace('_vspace'); $response = $schema->select([], Index::SPACE_NAME); $data = $response->getData(); foreach ($data as $row) { if ($row[1] == 0) { // user space $client->evaluate('box.space.' . $row[2] . ':drop{}'); } } }
protected static function getTotalSelectCalls() { $response = self::$client->evaluate('return box.stat().SELECT.total'); return $response->getData()[0]; }
public function testGetConnection() { $this->assertSame($this->connection, $this->client->getConnection()); }