Skip to content
Snippets Groups Projects
Commit 49499411 authored by Léo Banno-Cloutier's avatar Léo Banno-Cloutier Committed by Adrien Béraud
Browse files

datastore: reduce DAO abstraction to remove complexity

StatementList and StatementElement were an attempt at creating our own
ORM for JAMS. However, doing an database query was very verbose on the
caller side, and if the 1st, 2nd or 4th field of StatementElement was
user input, we would be vulnerable to SQL injections. This patch
hardcoded the SQL queries in the DAO, making it easier on SQL expert to
audit the queries.

Change-Id: I4699bf3146a077efe03efd178b6190dfe60c72e9
parent 27c2314f
No related branches found
No related tags found
No related merge requests found
Showing
with 353 additions and 698 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment