Exemplo n.º 1
0
 /**
  * @param ParameterBag $parameterBag
  * @return array
  * @throws InstanceNotFoundException
  * @throws ParameterNotPassedException
  */
 public function getTableInformation(ParameterBag $parameterBag)
 {
     $tableName = $parameterBag->get('tableName', '');
     $connectionName = $parameterBag->get('connection', 'default');
     if ($tableName == '') {
         throw new ParameterNotPassedException("Table Name was not passed", 404);
     }
     $this->queryValidator->validateConnection($connectionName);
     $this->dynamicRepo->setUp($connectionName);
     return $this->dynamicRepo->getColumnNamesFromTable($tableName);
 }