Skip to content
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
@claudiu-cristea

Description

@claudiu-cristea

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions