public function escapeBytea(string $input): string
    {
        if ($this->resource->getType() != Resource::TYPE_PGSQL_LINK) {
            throw new AgentException('escapeBytea() available for only Pgsql!');
        }

        return pg_escape_bytea($this->resource->getObject(), $input);
    }
public function escapeBytea(string $input): string
    {
        if ($this->resource->getType() != Resource::TYPE_PGSQL_LINK) {
            throw new AgentException('escapeBytea() available for only Pgsql!');
        }

        return pg_escape_bytea($this->resource->getObject(), $input);
    }
public function escapeBytea ( string $ input ) : string { if ( $ this -> resource -> getType ( ) != Resource :: TYPE_PGSQL_LINK ) { throw new AgentException ( 'escapeBytea() available for only Pgsql!' ) ; } return pg_escape_bytea ( $ this -> resource -> getObject ( ) , $ input ) ; }
Escape bytea.
@param  string $input
@return string
@throws Oppa\Agent\AgentException
Escape bytea .