for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TBolier\RethinkQL;
use TBolier\RethinkQL\Connection\ConnectionInterface;
use TBolier\RethinkQL\Query\Builder;
use TBolier\RethinkQL\Query\BuilderInterface;
use TBolier\RethinkQL\Query\DatabaseInterface;
use TBolier\RethinkQL\Query\Message;
use TBolier\RethinkQL\Query\TableInterface;
class Rethink implements RethinkInterface
{
/**
* @var ConnectionInterface
*/
private $connection;
* @var BuilderInterface
private $builder;
* @param ConnectionInterface $connection
public function __construct(ConnectionInterface $connection)
$this->connection = $connection;
$this->builder = new Builder($this, new Message());
}
* @inheritdoc
public function connection(): ConnectionInterface
return $this->connection;
public function table(string $name): TableInterface
return $this->builder->table($name);
public function db(): DatabaseInterface
return $this->builder->database();