src/Soluble/Normalist/Driver/Metadata/NormalistModels.php
public function getPrimaryKeys($table)
    {
        $this->checkTableArgument($table);
        $pks = $this->model_definition['tables'][$table]['primary_keys'];
        if (count($pks) == 0) {
            throw new Exception\NoPrimaryKeyException(__METHOD__ . ". No primary keys found on table '$table'.");
        }
        return $pks;
    }
public function getPrimaryKeys($table)
    {
        $this->checkTableArgument($table);
        $pks = $this->model_definition['tables'][$table]['primary_keys'];
        if (count($pks) == 0) {
            throw new Exception\NoPrimaryKeyException(__METHOD__ . ". No primary keys found on table '$table'.");
        }
        return $pks;
    }
Return composite primary keys

@throws Exception\InvalidArgumentException
@throws Exception\ErrorException
@throws Exception\NoPrimaryKeyException
@throws Exception\ExceptionInterface
@throws Exception\TableNotFoundException

@param string $table
@return array primary keys