public function getPrimaryKey($table)
    {
        $db = $this->showKeys()->from($table)
                               ->whereEquals('Key_name', new RawBinding('PRIMARY'));

        return $db->query('Column_name');
    }
public function getPrimaryKey($table)
    {
        $db = $this->showKeys()->from($table)
                               ->whereEquals('Key_name', new RawBinding('PRIMARY'));

        return $db->query('Column_name');
    }
public function getPrimaryKey ( $ table ) { $ db = $ this -> showKeys ( ) -> from ( $ table ) -> whereEquals ( 'Key_name' , new RawBinding ( 'PRIMARY' ) ) ; return $ db -> query ( 'Column_name' ) ; }
Gets primary out of a table

@param string $table
@return string|boolean False if no primary key available
Gets primary out of a table