src/DB/Connecter/PgSQLConnecter.php
public function lastInsertId()
    {
        $sql = "SELECT LASTVAL() as insert_id";
        try {
            $data = $this->pdo->query($sql)->fetch(PDO::FETCH_ASSOC);;
            return $data['insert_id'];
        } catch (Exception $e) {
            return false;
        }
    }
public function lastInsertId()
    {
        $sql = "SELECT LASTVAL() as insert_id";
        try {
            $data = $this->pdo->query($sql)->fetch(PDO::FETCH_ASSOC);;
            return $data['insert_id'];
        } catch (Exception $e) {
            return false;
        }
    }
获取最后插入时的ID

@return mixed