protected function queryID(string $sql, array $params = [], array $options = []) {
        $options += [Db::OPTION_FETCH_MODE => 0];
        $this->query($sql, $params, $options);
        $r = $this->getPDO()->lastInsertId();

        return is_numeric($r) ? (int)$r : $r;
    }
protected function queryID(string $sql, array $params = [], array $options = []) {
        $options += [Db::OPTION_FETCH_MODE => 0];
        $this->query($sql, $params, $options);
        $r = $this->getPDO()->lastInsertId();

        return is_numeric($r) ? (int)$r : $r;
    }
protected function queryID ( string $ sql , array $ params = [ ] , array $ options = [ ] ) { $ options += [ Db :: OPTION_FETCH_MODE => 0 ] ; $ this -> query ( $ sql , $ params , $ options ) ; $ r = $ this -> getPDO ( ) -> lastInsertId ( ) ; return is_numeric ( $ r ) ? ( int ) $ r : $ r ; }
Query the database and return the ID of the record that was inserted.

@param string $sql The query to execute.
@param array $params Input parameters for the query.
@param array $options Additional options.
@return mixed Returns the record ID.
Query the database and return the ID of the record that was inserted .