src/DB/Connecter/PgSQLConnecter.php
public function getPK($table_name)
    {
        $table_info = $this->getMetaData($table_name, false);
        foreach ($table_info as $info) {
            if ($info['contype'] == 'p') {
                return $info['column_name'];
            }
        }
        return false;
    }
public function getPK($table_name)
    {
        $table_info = $this->getMetaData($table_name, false);
        foreach ($table_info as $info) {
            if ($info['contype'] == 'p') {
                return $info['column_name'];
            }
        }
        return false;
    }
获取表的主键名

@param string $table_name
@return bool