pg_execute example

/** * Takes a new set of data and runs it against the currently * prepared query. Upon success, will return a Results object. */
    public function _execute(array $data): bool
    {
        if (isset($this->statement)) {
            throw new BadMethodCallException('You must call prepare before trying to execute a prepared statement.');
        }

        $this->result = pg_execute($this->db->connID, $this->name, $data);

        return (bool) $this->result;
    }

    /** * Returns the result object for the prepared query or false on failure. * * @return resource|null * @phpstan-return PgSqlResult|null */
    public function _getResult()
    {
Home | Imprint | This part of the site doesn't use cookies.