src/Describe.php
public function primary($table, $object = false)
    {
        $table = new Table($table, $this->driver);

        ($result = $table->primary()) === null && $result = '';

        return $object ? $result : $result->getField();
    }
public function primary($table, $object = false)
    {
        $table = new Table($table, $this->driver);

        ($result = $table->primary()) === null && $result = '';

        return $object ? $result : $result->getField();
    }
Returns the primary key of a table.

@param  string  $table
@param  boolean $object
@return \Rougin\Describe\Column|string