This repository was archived by the owner on Jul 27, 2022. It is now read-only.
This repository was archived by the owner on Jul 27, 2022. It is now read-only.
Allow SPARQL queries to accept query arguments #1
Open
Description
Cloned from ec-europa/rdf_entity#55
Implement argument replacement for:
\Drupal\rdf_entity\Database\Driver\sparql\Connection::query()
\Drupal\rdf_entity\Database\Driver\sparql\Connection::update()
This is not easy as the core drivers are deferring this operation to \PDOStatement::execute()
but PDO doesn't have any API that exposes the compiled query. We need to build a routine to perform the arguments SANITIZATION and REPLACEMENT.
Hints:
- Search for a library/code snippet that is doing the sanitization and mimics PDO
- Research in the source code of PDO and replicate in PHP the same process.
Activity