- Issue created by @anothergasteizone
- Status changed to Postponed: needs info
11 months ago 9:04am 23 February 2024 - 🇫🇷France guignonv
Sounds fair enough for me. I reviewed your patch (btw thx for the short syntax for list assignment ;-) ) but without testing (I'm missing time for that...).
Can you confirm that your patch fully solves your problem or does it need more work?
I ask because the event is not fired before every query issued by xnttdb (2 queries over 5). You may also want to alter all the queries (count/create/update/delete/placeholders/etc. queries)?Regarding the "cost" of firing event, I think it's not a big deal in the case of xnttdb compared to the flexibility it can bring. I don't see major security issues there as well since an other installed module is needed to alter queries. I am for the feature you propose, I just need to make sure it is complete before merging (see my previous question). :-)
As a side note, I'm not sure I completely understand what you are trying to achieve (I used per-table prefixing in D6, D7 and D8) but I hope you also considered just using dbxschema module with an additional module of your own, or maybe create another xntt module that inherits xnttdb and manage queries above xnttdb? For instance, I've also created the "chado light" (chadol) module that hides the complexity of xnttdb SQL queries behind the scene and auto-generates those queries for the user through a user friendly interface (in the case of a Chado database schema which is used in bioinformatics research). Depending on what your goal is, it could be an alternative to consider, if not already. ;-)