Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameterisation to named queries #113

Closed
thislarz opened this issue Mar 10, 2023 · 4 comments
Closed

Add parameterisation to named queries #113

thislarz opened this issue Mar 10, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@thislarz
Copy link

thislarz commented Mar 10, 2023

Independent of the target Language SQL or SparQL named queries should allow for named parameters. Parameters should be specified as a dict useing native python datatypes.

Example:

Follow up Problems:

  • Injections attacts should be avoided.
  • Update Documentation to demonstrate use.
@WolfgangFahl WolfgangFahl added the enhancement New feature or request label Mar 10, 2023
@WolfgangFahl WolfgangFahl added this to the 0.4.10 milestone Mar 10, 2023
@tholzheim
Copy link
Collaborator

qm=QueryManager(lang='sql',debug=False)
self.assertTrue(len(qm.queriesByName)>=2)
sqlDB=tests.testSqlite3.TestSQLDB.getSampleTableDB()
#print(sqlDB.getTableDict())
for _name,query in qm.queriesByName.items():
listOfDicts=sqlDB.query(query.query)
resultDoc=query.documentQueryResult(listOfDicts)

@tholzheim
Copy link
Collaborator

tholzheim commented Mar 10, 2023

@WolfgangFahl
Copy link
Owner

see #114

@WolfgangFahl WolfgangFahl modified the milestones: 0.4.10, 0.4.13 Sep 19, 2023
@WolfgangFahl
Copy link
Owner

see w3c/sparql-dev#57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants