Пример #1
0
 /**
  * @param QueryInterface $query
  * @param array          $params
  *
  * @return ResultInterface
  */
 public function executeRead(QueryInterface $query, array $params = [])
 {
     $result = $this->mysqlEmulator->getResult($query);
     if ($result) {
         return $result;
     }
     return $this->vitess->executeRead($query, $params);
 }
Пример #2
0
 /**
  * @return PDO\Vitess\ClusterConfig
  */
 public function getClusterConfig()
 {
     return $this->vitess->getClusterConfig();
 }