src/Soluble/Normalist/Driver/Metadata/NormalistModels.php
public function getUniqueKeys($table, $include_primary = false)
    {
        $this->checkTableArgument($table);
        return $this->model_definition['tables'][$table]['unique_keys'];
    }
public function getUniqueKeys($table, $include_primary = false)
    {
        $this->checkTableArgument($table);
        return $this->model_definition['tables'][$table]['unique_keys'];
    }
Get unique keys on table

@param string $table table name
@param boolean $include_primary include primary keys in the list
@throws Exception\InvalidArgumentException
@throws Exception\ErrorException
@throws Exception\NoPrimaryKeyException
@throws Exception\ExceptionInterface
@throws Exception\TableNotFoundException
@return array