Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Allow SPARQL queries to accept query arguments #1

Open
claudiu-cristea opened this issue Dec 12, 2018 · 0 comments
Open

Allow SPARQL queries to accept query arguments #1

claudiu-cristea opened this issue Dec 12, 2018 · 0 comments

Comments

@claudiu-cristea
Copy link
Contributor

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant