/**
  * {@inheritdoc}
  */
 public function startQuery($sql, array $params = null, array $types = null)
 {
     $queryType = null;
     if (preg_match('/^(\\w+)(?:\\s+|$)/', $sql, $matches)) {
         $queryType = strtolower($matches[1]);
     }
     $table = null;
     if (preg_match(self::REGEX_TABLE, $sql, $matches)) {
         $table = strtolower($matches['table']);
     }
     $this->currentQueryStartTime = TimeUtil::getCurrentTime();
     $this->currentQueryParameters = array('query_type' => $queryType, 'query_table' => $table);
 }
 public function preExecuteRequest(PreExecuteRequest $event)
 {
     $this->currentRequest = $event->getRequest();
     $this->currentEndpoint = $event->getEndpoint();
     $this->currentStartTime = TimeUtil::getCurrentTime();
 }